Skip to main content

Extracting contact-info from the website homepage

Project description

samparka

Prints the email and the phone number from the website. Phone number is available for Nepal & USA as of now

Developed by Ujjawal Shah (c) 2022

Examples of How To Use Package

Get contact email from the website homepage

import samparka

homepage = samparka.Scrollhomepage('https://howard.edu/')
email_adresses = homepage.emails()
print(f'emails: {email_adresses}')

Output:

emails: emails: ['admission@howard.edu', 'hugsadmission@howard.edu']

Get phonenumbers from the homepage

import samparka

#to see which countries are available for the phone numbers
print(samparka.__availablecountries__)

Output:

['Nepal', 'USA']

import samparka

homepage = samparka.Scrollhomepage('https://howard.edu/')
phone_numbers = homepage.phonenumbers('USA)
print(f'phone_numbers: {phone_numbers}')

Output:

phone_numbers: ['202-806-2763', '202-806-4465', '202-865-6100', '3341862722', '202-806-2755', '202-806-6800', '202-806-6100', '1-800-822-6363']

import samparka

homepage = samparka.Scrollhomepage('https://www.setopati.com/')
phone_numbers = homepage.phonenumbers('Nepal')
print(f'phone_numbers: {phone_numbers}')

Output:

['+977-1-5429319', '9741857838', '9772067662', '9771494820', '9703857991', '9823847051', '9839993648', '9644041575', '9801123339', '9872264189', '9873538472', '9860830966', '9830826490', '+977-1-5428194', '9731283648', '9652935037', '9702006458', '9851123339']

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

putali-0.0.7.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

putali-0.0.7-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file putali-0.0.7.tar.gz.

File metadata

  • Download URL: putali-0.0.7.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for putali-0.0.7.tar.gz
Algorithm Hash digest
SHA256 7d23afc2a741a30f06188d1985c6756bdb86a4acbd758678058c8a632ad77695
MD5 9900b2c58014c282f76f5781d80aa6c0
BLAKE2b-256 65d4663a8b4bf948caeeb0d181a534dad8821ec4d2b7019e1d01df0b07e3f3a0

See more details on using hashes here.

File details

Details for the file putali-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: putali-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for putali-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a4754452713739358a77e4c713dd32baae73a8a6f8c2a63288647d7da32ee823
MD5 fd2274583effdd37ba1fc52f3391f10e
BLAKE2b-256 2eb9d85f294933a5a8b9e64178bde844cbede5eb229585d4653795d0cb592c04

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page