Skip to main content

A Python library for SERP and web scraping with multiple provider integration

Project description

surfhub

A python library for surfing and crawling website.

This library provides two basic components for you to run google search and getting result

  • SERP is an API that provides structured data from Google search results. There are many SERP providers such as ValueSerp, Serper, etc.
  • Scraper is an API that extracts HTML from websites. You can run it on your own laptop, but it's better to use providers such as Zyte or Browserless.

To start, you can visit Serper to get a free account.

from surfhub import get_serper

s = get_serper("serper", api_key="yourkey")
print(s.serp("hello world").items)

Supported SERP provider:

Example to use scraper

from surfhub import get_scraper

s = serp.get_scraper("browserless", api_key="yourkey")
s.scrape("https://webscraper.io/test-sites/e-commerce/allinone")

Supported Scraper provider

  • Local (run on your laptop) with proxy support
  • Browserless
  • Zyte
  • Crawlbase

TODO

  • Support ScrappingBee
  • Add safe search option
  • Enable as MCP later
  • Add markdown converstion support
  • Make beautiful soup optional for duckduckgo

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

surfhub-0.0.6.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

surfhub-0.0.6-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file surfhub-0.0.6.tar.gz.

File metadata

  • Download URL: surfhub-0.0.6.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for surfhub-0.0.6.tar.gz
Algorithm Hash digest
SHA256 d179275052f31aec75e3a5e13efd51f7ade248f8e1a78f9636eb2f9147c0b416
MD5 2da2672c03f9da76c0fd83b933ab9479
BLAKE2b-256 f24e85bc71c8232ca3818ea4f1c6fd0e3c7abfed562908658315213662f41453

See more details on using hashes here.

File details

Details for the file surfhub-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: surfhub-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for surfhub-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8706601ce728a1cb723ad6ee0b15d7d4b9cbca268776cc2d9b4138da324ce285
MD5 ba5126db74b882498818940bdf2dfe28
BLAKE2b-256 71c7314034be747f84c9ac70fa0ac46781f0b6f33d40411e1b019c3dd3a96f25

See more details on using hashes here.

Supported by

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