the friendliest scraper around
Project description
Super Scraper
Scraping couldn't get much easier.
Super Scraper is built with ease in mind - for those hard to scrape places. It drives with Selenium and parses with BeautifulSoup4. I've provided some convenience methods to make common actions even easier for you.
Example
from superscraper import SuperScraper, ScraperOptions, Browser, By
options = ScraperOptions()
options.show_process = True
options.incognito = True
scraper = SuperScraper(
browser=Browser.CHROME,
options=options)
scraper.search('https://www.google.com')
scraper.fill_in(By.NAME, 'q', 'hello world')
scraper.click(By.NAME, 'btnK')
search_results = scraper.driver.find_elements(By.CLASS_NAME, 'g')
for result in search_results[:3]:
title = scraper.attempt(result.find_element, By.TAG_NAME, 'h3')
if title:
print(title.text)
a = result.find_element(By.TAG_NAME, 'a')
scraper.open_new_tab(By.LINK_TEXT, a.text)
scraper.close_current_tab(switch_to_tab=-1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
superscraper-0.3.9.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file superscraper-0.3.9.tar.gz
.
File metadata
- Download URL: superscraper-0.3.9.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 085dcdd415c1879fc3d68faa65f4ca47ab63851f62116cf77fdb56fcdc3d42a6 |
|
MD5 | a3bc9d61b0728b1c54c0541ad6710b61 |
|
BLAKE2b-256 | 8fa38f1a17d7243d743a895dd33fb4f0ec809841dee6e389432d14b93f1b3252 |
File details
Details for the file superscraper-0.3.9-py3-none-any.whl
.
File metadata
- Download URL: superscraper-0.3.9-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2333b163705ec471a19463fa755dcaa5b68c9602cff38a8944f3d6cdb307b389 |
|
MD5 | 3682dc2d1d3ba2afd98f51bd4f32313f |
|
BLAKE2b-256 | 044a5ca491da0600877338b5dd14094e38e9a444f8ec29718876cac98bd8f97e |