Skip to content

ZackAnalysis/zacktools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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": "[email protected]",
  "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))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages