MLSAKIIT/pixly

Implement a more robust web scrapper

Aperta

#12 aperta il 14 ott 2025

 (2 commenti) (0 reazioni) (1 assegnatario)Python (15 fork)auto 404
enhancementhacktoberfest

Metriche repository

Star
 (20 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Web Scrappers in knowledge_manager.py, extract_wiki_content() and extract_forum_content() sometimes gets blocked by certain websites, (namely the ones present in minecraft.csv)

Recommended Solutions :

  • Use an existing tool such as scrappy or playwright.
  • Mask the scrappers to behave to more like human by introducing delays between different searches.
  • Make the scrapper behave like a browser as much as possible
  • Use Proxies to circumvent IP bans.
  • Rotate a list of User Agents and headers.
  • Make it asynchronous using asyncio + httpx

Guida contributor