Explain JavaScript scraping libraries by use case
Explains what kinds of JavaScript scraping libraries exist and when each kind fits, with one decision rule you can apply to your own job.
Task:
Explain the main kinds of JavaScript libraries used for web scraping and when each kind fits.
Context:
I am a [your background] who knows [JavaScript level] JavaScript. My job is to collect [data] from [type of site], about [number of pages] pages.
Rules:
- Group libraries by what they do, such as fetching pages, parsing HTML and driving a real browser, and give one or two well-known examples per group.
- End each group with the sign that tells me I need it.
- Say which names or details may be outdated and tell me to check each library's own documentation.
Result:
About 350 words, three short sections, one per group. Close with one decision rule of two sentences that I can apply to my job, and say which group it points to.