Skip to main content

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


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.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

superscraper-0.3.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file superscraper-0.3.1.tar.gz.

File metadata

  • Download URL: superscraper-0.3.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.5 Windows/10

File hashes

Hashes for superscraper-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d36d2708aa040e792b3bd5586350db19eea7e45d5721b46e559785285e3ef618
MD5 c6c0ce8814e0ee638a5f5e923612ea48
BLAKE2b-256 c1a432d5300d3712111840b6dbdc82eb3b8f7f56b1b9d56882e62722dd05bbbe

See more details on using hashes here.

File details

Details for the file superscraper-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: superscraper-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.5 Windows/10

File hashes

Hashes for superscraper-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 adb07fa75fa860932b07d7a75de2c9a866c84d4c1eb3a05be6eeeca7446b9b18
MD5 f8daa712f7fbe5aaa43568039dfd4a7c
BLAKE2b-256 683041dba38efc57b723d38600010dd3453d102446ff5d3f7e5fff9249e18c5f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page