Liqen Scrapper 2
Find news and get the relevant information of them.
This project uses
- Google Custom Search to search into the medias websites.
- Scraping techniques to extract the content of an article.
Usage
This package includes 2 functions that can be used together or separately:
googleSearch(term, options) => Promise<Object>
to perform a Google SearchdownloadArticle(uri) => Promise<Object>
to parse an article
Examples
googleSearch
Using only const googleSearch = const options = apiKey: 'MY_GOOGLE_API_KEY' cx: 'MY_CX'
downloadArticle
Using only const downloadArticle =
Using both functions together
const googleSearch downloadArticle = const options = apiKey: 'MY_GOOGLE_API_KEY' cx: 'MY_CX'const promiseOfArticles = PromiseallpromiseOfArticles
docs
See /docs
directory for more docs