Zack's ommon tools
Project description
zacktools
Useful tools created by zackdai
install
pip install zacktools
or from git
pip3 install git+https://github.com/ZackAnalysis/zacktools.git
pageparser
A tool for parse address,phone, email, facebook, twitter, linkedin, contact link, about us link from a webpage
usage
from zacktools import pageparser
import requests
res = requests.get('http://rel8ed.to')
result = pageparser.parse(res.content)
print(result)
Note: MainAddress is an Object, and can be further extacted like:
print(result['Mainaddress'].city)
If want to convert to json directly, add parameters tojson=True
result = pageparser.parse(res.content, tojson=True)
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
zacktools-0.0.11.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for zacktools-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59f830f62e1f41c47e1aec42030273ca2c22c753a58bfe7d4050358e68881555 |
|
MD5 | f25465fa65401241e554e467ff85eb1e |
|
BLAKE2b-256 | f530a0a75d17ae5a696a1f2b380110a86e6b1f17f2d18fee16566a6009e5d580 |