dglttr / scrawler Goto Github PK
View Code? Open in Web Editor NEWA Python package for Systematic Web Scraping and Crawling
License: Other
A Python package for Systematic Web Scraping and Crawling
License: Other
scrawler already records the steps_from_start_page
of individual websites. A structure recording which pages appear at which depth (from the start page) and on which sub-pages, in a sort of tree structure, could be extracted and saved in an XML file, for example.
This could be useful for understanding the structure of web domains.
Currently, the steps_from_start_page
attribute serves as a way to save this specific kind of meta information on websites. However, more information could potentially be collected as meta information that is passed along with the Website
object. An easy way would be to have a dedicated dictionary as attribute of the Website
class, somewhat similar to the .
Additional options for data storage.
Ideas :
Consider adding functionality related to responsible web scraping/crawling.
Reference: https://www.zyte.com/blog/how-to-crawl-the-web-politely-with-scrapy/
Both classes share similar functionalities, e. g. the request and retrieval or website data, or storing it. Following DRY, this redundancy should be reduced.
to_csv()
from within the kwargs
(e. g. sep
, index
, header
)The objects stored in the http_response
attribute are requests.Reponse
or aiohttp.ClientResponse
objects, depending on whether the asyncio
or multithreading
backend is used.
These two object have slightly different attributes and available methods and thus make writing data extractors that work with both harder.
extract_same_host_pattern()
.Scrapy is a well-maintained, robust Python library for web scraping and crawling. Relying on scrapy on the backend could solve issues with concurrency and simplify the project, in order to focus on more high-level functionality such as data extractors.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.