Skip to main content

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


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)

Uploaded Source

Built Distribution

zacktools-0.0.11-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page