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://www.setopati.com/')
email_adresses = homepage.emails()
print(f'emails: {email_adresses}')

Output:

emails: ['ketaketi.setopati@gmail.com', 'info@setopati.com', 'setopati@gmail.com']

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://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.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: putali-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 7a919b0569d81b152bd1ef85ea7c55c69cdb82711d6976cbc4e275fc248fbad8
MD5 1ac1216900d8e3103d1bf39e8bae6e88
BLAKE2b-256 aeb55d46b57d56eb07edef5c533e75c405d2f877404761eb2b0040b9cad9b034

See more details on using hashes here.

File details

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

File metadata

  • Download URL: putali-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5077e6b77ddda2327e38560a60b9bd461fb5db8f338782ff01dadadf5c399809
MD5 5063dd6ad3c5c22316060d2074a05920
BLAKE2b-256 4b9f0984c0ed287dac72dc9cbeab766761fc7d822ff8adfeba6620e275868dbf

See more details on using hashes here.

Supported by

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