Giter VIP home page Giter VIP logo

Comments (12)

CodeSuite avatar CodeSuite commented on May 25, 2024 6

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.

janihq avatar janihq commented on May 25, 2024 2

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.

dogeow avatar dogeow commented on May 25, 2024

@janihq Yes.Screenshot can use Browsershot. But crawl use puphpeteer best.

from puphpeteer.

janihq avatar janihq commented on May 25, 2024

@likunyan This can be the alternative for crawling: https://github.com/spatie/crawler

from puphpeteer.

dogeow avatar dogeow commented on May 25, 2024

@janihq Thanks, I'll try it out.

from puphpeteer.

PJTH3G0D avatar PJTH3G0D commented on May 25, 2024

not as usefull as puphpeteer but ok

from puphpeteer.

PJTH3G0D avatar PJTH3G0D commented on May 25, 2024

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.

seifti avatar seifti commented on May 25, 2024

Temporary : composer require likunyan/puphpeteer@dev-dev

Getting a 404 :(

from puphpeteer.

dogeow avatar dogeow commented on May 25, 2024

@seifti Sorry, i clear other reop in my reops, but i accidentally deleted this repository.

from puphpeteer.

SpurIT avatar SpurIT commented on May 25, 2024

+1

from puphpeteer.

iammayron avatar iammayron commented on May 25, 2024

+1

from puphpeteer.

iammayron avatar iammayron commented on May 25, 2024

+1

from puphpeteer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.