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.12.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for zacktools-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5828d8d6a6678d0a106fb71a975854d5d5d57786c24dc49b5f1fd492110df405 |
|
MD5 | fce5692819e03ac769965c4cbf27aea2 |
|
BLAKE2b-256 | e21229e648dda70fe507d2aa2ef8495773a2b6ce8be05342292a5cd7490dd0ee |