-
Notifications
You must be signed in to change notification settings - Fork 90
Home
The operational doc for GHCrawler is still in development and will evolve here. Feel free to contribute changes, additions or ideas for the doc.
GHCrawler is like a normal web crawler but it traverses REST APIs, in particular, the GitHub REST API. At its core is a relatively simple loop with the following four steps repeated over and over concurrently.
- Get request -- Requests are read off a set of prioritized queues. Each request has a type, a URL to fetch, and a policy that describes both if and how to process the API response as well as what links to follows.
- Fetch document -- Given the request URL, the corresponding response document is fetched either from the crawler's cache or from the origin (e.g., GitHub).
- Process document -- The fetched document is analyzed and updated, and any interesting links to other APIs are queued for further traversal and processing.
- Save document -- The document coming out of the processing is stored for future reference either as cache content or for generating insights.
Each of the infrastructure pieces involved in the processing loop (e.g., queuing, fetching, processing, doc storage, ...) is supplied by a provider. The crawler is highly configurable and can reasonably run in many different configurations.
The documentation here dives into these elements, explaining them and guiding you as to how to configure and run the system.
-
Running the crawler -- Details of how to operate the crawler
-
Architecture -- An overview of how the crawler is structured and how it works
-
Configuration -- A detailed guide to configuring the crawler with different infrastructure and operation
-
Operator's guide -- Tutorial style guide for running the crawler