News Scrapper
We will continue to create a news scrapper with the knowledge we learn from our tools.
Getting The Links
We use the homepage of the news site to get all the links of the most recent articles, so we need to analyze to find what all the links have in common this time it was the right-post-category
class and append them all to a array. In this example we will use GazetaExpress.
Getting The Content
Now that we have the links of the articles we just have to find how is the content contained with which class, this case we have to get the content with the single__content
class.
We can continue to use now all the articles post that we get back for research or for anything in particular. We can use the count
function to get how many times a word was used in the articles and see a pattern or create some statistics about anything really.
Last updated