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, By

scraper = SuperScraper(show_process=True)
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:

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

Uploaded Source

Built Distribution

superscraper-0.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for superscraper-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7125f53885c7beb68fa6c12c0000ed765be387d8809332ffe702058cbb0b28b1
MD5 5e45efea2571ee020faeb40c59a99805
BLAKE2b-256 fb31b6085a7730c4d18a2f49d6895b45738649f7e75ca6d8b35fea3dcebde689

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for superscraper-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc0314bb9c8b83eab410de3bf713a86b7f475d7bbc44bdb202dd0db62b8d6cff
MD5 4073d7334c6f2805ac12f6bb82c561c4
BLAKE2b-256 8c94690e59c24a66aba8fb975468fe2e21cf462bd54999ff2a5d2fbb6205fdf9

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