Scraping Classical Poetry Websites with Scrapy

Project Setup in PyCharm Create a new Python project named ScrapyProject in PyCharm. Scrapy Installation Package Installation pip install scrapy For faster installasion in China: pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple/ Project Structure Initilaization scrapy startproject poetry_scraper Key directories and files: spid ...

Posted on Fri, 12 Jun 2026 16:32:14 +0000 by junrey

Streamlining Routine Workflows with Ten Practical Python Scripts

1. Web Scraping and DOM Extraction Efficiently retrieve remote HTML documents and parse specific elements using requests and BeautifulSoup. The implementation supports custom headers for rate limiting avoidance and provides utility methods for targeted tag retrieval. import requests from bs4 import BeautifulSoup def fetch_and_parse(target_url: ...

Posted on Sun, 24 May 2026 20:59:49 +0000 by devinemke