Skip to main content

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

Github

Metadata

Release files for wscrape 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wscrape 0.0.1
File Size Uploaded
wscrape-0.0.1.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wscrape 0.0.1
File Interpreter ABI Platform
wscrape-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.5 kB

Release files / wscrape-0.0.1.tar.gz

Download URL wscrape-0.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
13a74b13f953a8f14159c7501f897ba4234ee291b7e8a310f890af52df731a97
BLAKE2b-256 checksum
How to use checksums
56ea562d2ed0889597473e7610b6e40bb19ec13c682fe8851fc27fa312eada1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Release files / wscrape-0.0.1-py3-none-any.whl

Download URL wscrape-0.0.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a72d22f28f5366359e1d1bff21a617541f08d5e0151a878ba66ded8d0aec75d1
BLAKE2b-256 checksum
How to use checksums
20e6b00e2e2707fd340d8def018dfe8e82c07a8f30a46656806a09c3a8e9aa85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page