https://github.com/robocorp/example-full-page-website-screenshots
A robot that takes full page screenshots of given websites.
https://github.com/robocorp/example-full-page-website-screenshots
Last synced: about 1 year ago
JSON representation
A robot that takes full page screenshots of given websites.
- Host: GitHub
- URL: https://github.com/robocorp/example-full-page-website-screenshots
- Owner: robocorp
- License: apache-2.0
- Created: 2021-02-05T12:21:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-30T15:05:10.000Z (over 2 years ago)
- Last Synced: 2025-04-05T03:03:09.987Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 3.8 MB
- Stars: 4
- Watchers: 16
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A robot that takes full page screenshots of given websites
[](http://www.youtube.com/watch?v=aQkXTHP3Xxw)
- Reads the website data (URL, accept cookies and consent selectors) from a `.csv` file using the Python's `csv` built-in library. library.
- Uses the [Playwright](https://playwright.dev/)-based [Python Framework Browser](https://robocorp.com/docs/python/robocorp/robocorp-browser) library to take full page screenshots of the websites.
## Example csv file
`websites.csv`:
```
url,accept_cookies_selector,data_consent_selector
https://www.nytimes.com/,"xpath=//div[contains(@class, 'fides-banner-button-group')]//button[text()='Accept all']",
https://www.themoscowtimes.com/,,"frame:css=.sp_choice_type_11"
https://www.japantimes.co.jp/,,"css=.fc-cta-consent > .fc-button-label"
```
## Example screenshot
BBC - Homepage