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

Uploaded Source

Built Distribution

superscraper-0.3.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for superscraper-0.3.3.tar.gz
Algorithm Hash digest
SHA256 0efd60abdc72946e8366552a8c08bb10f9ef7b1dccde33ef6172cb8ab0205823
MD5 7ac08fbfcbffea7d3d31c41abcb39842
BLAKE2b-256 d5810cccb0d5cdc06976cb49d4e82b7699d6dea8ef392e9aa84cefb78a631fae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: superscraper-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Windows/10

File hashes

Hashes for superscraper-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 915a9e9887f6fcf990b4eceb503dcea3f2845a12eaf43298924d2304a229c68c
MD5 56b0457590753dae228880849e2330d7
BLAKE2b-256 ce7a4b62a03a1bdd758547806e9f7fbc1fcbc018750b97bfa61877534fe21155

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