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)
{
  "facebook": "https://www.facebook.com/rel8edto/",
  "twitter": "https://twitter.com/rel8edto",
  "instagram": "",
  "linkedin": "https://www.linkedin.com/company/rel8ed-to",
  "contactlink": "http://www.rel8ed.to/contact-us/",
  "aboutlink": "http://www.rel8ed.to/about-us/",
  "title": "Big Data Analysis Data Mining Predictive Analytics",
  "email": "info@rel8ed.to",
  "phone": "905.321.0466",
  "Mainaddress": "1 St. Paul St., Unit A303, St. Catharines, ON L2R 7L2",
  "addresses": [
    "1 St. Paul St., Unit A303, St. Catharines, ON L2R 7L2"
  ]
}

Test it Open In Colab

multithread

from zacktools.multiThread import scrapeurls
import asyncio
urls = ['ibm.com','idc.com']
asyncio.run(scrapeurls(urls))

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.3.8.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file zacktools-0.3.8.tar.gz.

File metadata

  • Download URL: zacktools-0.3.8.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for zacktools-0.3.8.tar.gz
Algorithm Hash digest
SHA256 2271bf997dc50a05bb93d720526caadab9d9b6c9944d4d10d62d91ab0bcbf4d2
MD5 95defc38cdfc07a81f16956debcd3d47
BLAKE2b-256 01d8b463d0e3a1cd878ab21223058415958d6240d15b71e5dd5acd55cc17f264

See more details on using hashes here.

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