Comments (12)
Hey Team, I am seeing the same as @parthjani7.
PHP version: 8.0.8
Laravel version: 9.2
composer require nesk/puphpeteer
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires nesk/puphpeteer ^2.0 -> satisfiable by nesk/puphpeteer[2.0.0].
- nesk/puphpeteer 2.0.0 requires psr/log ^1.0 -> found psr/log[1.0.0, ..., 1.1.4] but the package is fixed to 3.0.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Excited to try it out once we can get it to play nice with Laravel 9.2
Thanks!
from puphpeteer.
Those who are looking for a better alternative, much stable and widely used : https://github.com/spatie/browsershot
$puppeteer = new Puppeteer;
$browser = $puppeteer->launch(['args' => ['--no-sandbox', '--disable-setuid-sandbox']]);
$page = $browser->newPage();
$page->goto($url, ["waitUntil" => "networkidle2"]);
$page->emulateMediaType('screen');
$page->pdf(['path' => $path, 'printBackground' => true]);
$browser->close();
Becomes
Browsershot::url($url)
->setOption('args', ['--no-sandbox', '--disable-setuid-sandbox'])
->waitUntilNetworkIdle(false)
->emulateMedia('screen')
->savePdf($pathToSave);
from puphpeteer.
@janihq Yes.Screenshot can use Browsershot. But crawl use puphpeteer best.
from puphpeteer.
@likunyan This can be the alternative for crawling: https://github.com/spatie/crawler
from puphpeteer.
@janihq Thanks, I'll try it out.
from puphpeteer.
not as usefull as puphpeteer but ok
from puphpeteer.
I just cant figure out how to click around properly if he makes that simpler this will be the best php bot framework
from puphpeteer.
Temporary :
composer require likunyan/puphpeteer@dev-dev
Getting a 404 :(
from puphpeteer.
@seifti Sorry, i clear other reop in my reops, but i accidentally deleted this repository.
from puphpeteer.
+1
from puphpeteer.
+1
from puphpeteer.
+1
from puphpeteer.
Related Issues (20)
- Using puppeteers page.select() function in puphpeteer HOT 1
- Could not find browser revision 818858 HOT 2
- Help to transcode JS with lib HOT 4
- Error: handler is not a function HOT 1
- Help with download pdf from a website
- Copy text from textarea to variable HOT 1
- Upgrade to symfony ^6.0 to add compatibility with Laravel 9 HOT 1
- Cannot be required on Laravel 9 due dependency problems with symfony/process HOT 1
- How to turn off loading images, css and fonts?
- ProcessSupervisor unconditionally stops browser on __destruct HOT 1
- How do I use fs in JsFunction
- Keep getting Exit Code: 127 error HOT 1
- Can't encode larger images to base64 HOT 1
- How to set cookies? HOT 1
- header and footers are not generated in the pdf document
- Network.getAllCookies returns empty array
- [email protected]: Version no longer supported. Upgrade to @latest HOT 2
- How can ı get background-image from div content
- Scroll element until no more content
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puphpeteer.