0 purchases
parseweb 1.0.0
With the help of this module,you can access the information of various websites.
The applications of this module are as follows:
Working with parse_web
Get IP address:
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.get_ip())
Get ping :
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.ping())
parameters :
mode: The mod parameter can be equal to:
min: Returns the lowest ping
mid : Returns the average ping
max: Returns the maximum ping.
number :
is an integer, the higher this numerical parameter is, the more accurate the obtained ping is. But it takes a lot of time to get ping.
Get links :
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.get_links())
Get link of images :
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.get_images())
Get link of videos :
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.get_videos())
Get CSS code :
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.css_code())
parameters :
link_or_code: The mod parameter can be equal to:
link: Returns a list of css links (default)
code : It returns a dictionary of css codes whose key is the css link and its value is the css code.
Get information :
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.information())
Returns a list of whois information as str
social networks:
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.social())
It returns a dictionary whose key is the name of the social network and its value is the address of the social network
get Textual content :
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.text())
Returns the text content as str
Technologies used :
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.technology())
It returns the used technologies in the form of a dictionary.
Find a word in url:
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.isit('python'))
parameters :
word:It is equal to the desired word, if the desired word exists in the url, it returns true and if it does not exist, it returns false.
Find files in url:
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.find_file('.pdf' , '.ico' , '.png'))
parameters :
suffix: A set of extensions (at least one extension); Suffixes can start with a dot or be written without a dot.
is wordpress ? :
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.iswordpress())
If it is written with WordPress; Returns true otherwise returns false.
Find tags in url:
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.tag('h1'))
parameters :
tag : It is equal to the desired tag that you want to extract from the url
attribute : is equal to the attribute in question ( defualt = None)
Returns a list of the desired tags that have the given attribute.
Access to robots.txt:
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.robots())
If the robots.txt file is defined in the url, it returns it, otherwise it returns false.
return title :
import parse_web as pw
url = pw.set_url("https://python.org")
print(url.title())
Returns the title of the site.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.