Questions tagged [pyppeteer]

Unofficial Python port of puppeteer JavaScript (headless) chrome/chromium browser automation library.

Unofficial Python port of puppeteer JavaScript (headless) chrome/chromium browser automation library.


Pyppeteer is mostly used for:

  1. Generate screenshots and PDFs of pages.
  2. Crawl an SPA and generate pre-rendered content (i.e. "SSR").
  3. Scrape content from websites.
  4. Automate form submission, UI testing, keyboard input, etc.
  5. Create an up-to-date, automated testing environment. Run your tests directly in the latest version of Chrome using the latest JavaScript and browser features.
  6. Capture a timeline trace of your site to help diagnose performance issues.

Resources:

Differences from puppeteer

185 questions
0
votes
0 answers

Detect automatically opened tabs with Pyppeteer

With pyppeteer it is possible to get all open tabs via the .pages function. This is working fine until a website opens a new tab by itself (e.g. after a click on a button). In this case, the new tab isn’t listed in the return of **.pages*. Is there…
Robin M
  • 45
  • 5
0
votes
1 answer

How to use local DNS in Pyppeteer

I've got a reverse proxy, frontend and backend container. The backend is running Pyppeteer and the reverse proxy is set up with an alias "servicename.localhost" in docker-compose.yml: networks: default: aliases: -…
l0b0
  • 55,365
  • 30
  • 138
  • 223
-1
votes
1 answer

Scraping script with Python and asyncio.run

I'm using "pyppeteer" and "BeautifulSoup" to scrape a website and extract some parts of its' html output. Also I'm using Python with the version 3.11.3. This is my code: import asyncio from pyppeteer import launch from bs4 import…
Zerers
  • 63
  • 6
-1
votes
1 answer

Is there a mathematical way/programmatic way to convert between .getBoundingClientRect() coordinates and pyautogui's position system?

I want to be able to get an elements position on the screen of my computer then click it using pyautogui. However the only current way to do this reliably is to use puppeteer(pyppeteer) and screenshot the element then click it with pyautogui's png…
Jimmy J.K.
  • 25
  • 6
-2
votes
1 answer

Is there a stealthy headless browser automation tool similar to puppetteer for Python?

I am aware of the Pyppeteer library and Pyppeteer Stealth, but the problem with them is that the website that I am trying to scrape information from detects Pyppeteer Stealth (Python transplant of Puppetteer) and blocks it. The original Puppetteer…
techxz
  • 1
  • 2
1 2 3
12
13