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
Seprer is a API to provide structured data from Google search. There are many serper providers such as ValueSerp, Serper, etc
Scraper is an API to extract HTML from website. You can run it on your own laptop, but it is better to use providers such as Zyte, or Browserless
To start, you can visit Serper to get a free account.
import surhub import get_serper
s = serp.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
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
File details
Details for the file surfhub-0.0.3.tar.gz
.
File metadata
Download URL:
surfhub-0.0.3.tar.gz
Upload date: Dec 31, 2024
Size: 7.5 kB
Tags: Source
Uploaded using Trusted Publishing? No
Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Hashes for surfhub-0.0.3.tar.gz
Algorithm
Hash digest
SHA256
0fda4f099ec5b74e8c48191b70867b9a5163b471df9adc7aac0d7449c1617773
Copy
MD5
7bd7d0d1ef55ebc2621ed43004144996
Copy
BLAKE2b-256
40af45ba7c810f82e97e38e4b25ae71ad8c2d54692b8c4010990b234502d88b3
Copy
See more details on using hashes here.
File details
Details for the file surfhub-0.0.3-py3-none-any.whl
.
File metadata
Download URL:
surfhub-0.0.3-py3-none-any.whl
Upload date: Dec 31, 2024
Size: 10.5 kB
Tags: Python 3
Uploaded using Trusted Publishing? No
Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Hashes for surfhub-0.0.3-py3-none-any.whl
Algorithm
Hash digest
SHA256
c38356da5825e579f61b6ad7bf4339d40da858aaa7075cfec4f6cd6c60651b44
Copy
MD5
d05874d01e33f01a1423ba5f38e49d8c
Copy
BLAKE2b-256
7cff4cdc467d511b43773ef12894295d4506e2142333851e45ba842f7dd3e151
Copy
See more details on using hashes here.