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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file surfhub-0.0.5.tar.gz.
File metadata
- Download URL: surfhub-0.0.5.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ca9fa2a314d19c2b2965b6dd915e20f326136844a452fa4a7029702fc068dda
|
|
| MD5 |
bb841a6c3e4462036d0a1a833e856c9b
|
|
| BLAKE2b-256 |
598cecd98848d0cefc547b51767325857d4ce4e1b256cee1c727a94a90d4851d
|
File details
Details for the file surfhub-0.0.5-py3-none-any.whl.
File metadata
- Download URL: surfhub-0.0.5-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
778e12efd7fb49c6b30e47a6801411ea2e38bca0e1a1b9954a14f30ea77803d1
|
|
| MD5 |
66197259bc818cb408b95648402259b2
|
|
| BLAKE2b-256 |
ec2d18e3c5bb661bb2147a45c6de75ba885af1a1f6d3d2f2a3d196896431e5b2
|