PyWebScrapr Package Documentation
Package documentation for PyWebScrapr, a Python package for handling web scraping tasks. Supports both image scraping and text scraping.
Last updated
Package documentation for PyWebScrapr, a Python package for handling web scraping tasks. Supports both image scraping and text scraping.
Last updated
from pywebscrapr import scrape_text
# Specify links in a file or list
links_file = 'links.txt'
links_array = ['https://example.com/page1', 'https://example.com/page2']
# Scrape text and save to the 'output.txt' file
scrape_text(links_file=links_file, links_array=links_array, output_file='output.txt')from pywebscrapr import scrape_images
# Specify links in a file or list
links_file = 'image_links.txt'
links_array = ['https://example.com/image1.jpg', 'https://example.com/image2.png']
# Scrape images and save to the 'images' folder
scrape_images(links_file=links_file, links_array=links_array, save_folder='images')