Skip to main content

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

Github

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

wscrape-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wscrape-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for wscrape-0.0.1.tar.gz
Algorithm Hash digest
SHA256 13a74b13f953a8f14159c7501f897ba4234ee291b7e8a310f890af52df731a97
MD5 fb12acac63b12da7238945c8d571c3b9
BLAKE2b-256 56ea562d2ed0889597473e7610b6e40bb19ec13c682fe8851fc27fa312eada1d

See more details on using hashes here.

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

Hashes for wscrape-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a72d22f28f5366359e1d1bff21a617541f08d5e0151a878ba66ded8d0aec75d1
MD5 5f9c42408c0058bf4d6203e46c9db952
BLAKE2b-256 20e6b00e2e2707fd340d8def018dfe8e82c07a8f30a46656806a09c3a8e9aa85

See more details on using hashes here.

Supported by

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