A lib to work with html and web data
Project description
datahtml
datahtml is a library for crawling and extraction of data from html and xml content.
Datahtml lets you:
- Extract ld+json data from html
- Extract frequently used meta tags from html (those that are used for SEO and social media, between others)
- Extract Article data from a html, usually from Newspaper sites
- Parse RSS feeds from sites
- Crawl some specific social media sites like google and youtube
Under the hood datahtml uses libraries like BeautifoulSoup, Newspaper2k, feedparser between others, but datahtml takes an opinionated approach for crawling based on our expriencies doing so.
Quickstart
pip install datahtml
from datahtml import web, crawler
c = crawler.LocalCrawler()
w = web.download("https://www.infobae.com", crawler=c)
w.links()
License
datahtml
is distributed under the terms of the MPL-2.0 license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
datahtml-0.4.0rc14.tar.gz
(520.9 kB
view hashes)
Built Distribution
Close
Hashes for datahtml-0.4.0rc14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61377c1517e3b5c21163f81a5cf357bdbc3ebbefb49601ddc95bf13498018c4 |
|
MD5 | 73d3d56888e0e156a09a7a6d0b9e973b |
|
BLAKE2b-256 | 5d501e4955e180058c6d6f96f2b9924b1723eb36164d5267de6a20979c394c36 |