A small package that allows you to quickly scrape things off the web.
Project description
About
Wscrape is a package that allows you to quickly scrape things off a website. Other utils have been added for debugging. Check Pyutils-cr for more debugging/info on the other functions included.
Examples
Scrape information on Cars off Wikipedia
import requests
from bs4 import BeautifulSoup
from wscrape import Scrape
#variable=input("What word would you like to search: ")
url = "https://en.wikipedia.org/wiki/Cars_(film)"
f = Scrape()
f.qresult(f.page_content(url))
y = f.relems("i","lang","la")
print(y.text)
#Returns content of provided tags
Retrieve content from a website
import wscrape.scrape.misc as req
print(req.rcontent("abcdefg.com"))
#Returns string
Scan the website for a specific element
import wscrape.etc.misc.scan_elems as scan_elem
print(scan_elem("https://en.wikipedia.org/wiki/Cars_(film)", "i", "lang", "la")
#Returns Bool
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wscrape-0.0.1.tar.gz.
File metadata
- Download URL: wscrape-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13a74b13f953a8f14159c7501f897ba4234ee291b7e8a310f890af52df731a97
|
|
| MD5 |
fb12acac63b12da7238945c8d571c3b9
|
|
| BLAKE2b-256 |
56ea562d2ed0889597473e7610b6e40bb19ec13c682fe8851fc27fa312eada1d
|
File details
Details for the file wscrape-0.0.1-py3-none-any.whl.
File metadata
- Download URL: wscrape-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a72d22f28f5366359e1d1bff21a617541f08d5e0151a878ba66ded8d0aec75d1
|
|
| MD5 |
5f9c42408c0058bf4d6203e46c9db952
|
|
| BLAKE2b-256 |
20e6b00e2e2707fd340d8def018dfe8e82c07a8f30a46656806a09c3a8e9aa85
|