A web page crawler which returns (title, og:image, og:description).
Project description
NOIZZE Crawler
A web page crawler PyPI Package which returns (title(og, head), image(og, meta), description(og, meta)).
Dependency
- BeautifulSoup4
Installation
Run the folowing to install:
pip install noizze-crawler
Usage
import noizze_crawler as nc
import sys
if __name__ == '__main__':
url = 'https://dvdprime.com/g2/bbs/board.php?bo_table=comm&wr_id=20525678'
try:
(title, desc, image_url, html) = nc.crawler(url)
except nc.HostNotFound as e:
print("Host Not Found")
sys.exit(1)
except nc.HTTPError as e:
print("HTTP {}".format(e))
sys.exit(1)
print(title, desc, image_url) # html
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
noizze-crawler-10.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for noizze_crawler-10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f92d338e7fdca61081253a68f66a19ff6f9c78a6fdeca50f1e65742d5e03960f |
|
MD5 | fab80bd59d01aba547836a82141d3453 |
|
BLAKE2b-256 | ad02d16c6c05db29c8c165be7b16317ede1ba489f24f85f54361416487fe0f0e |