Code Monkey home page Code Monkey logo

web-scraper's Introduction

💩Scrapy💩

A small page scraper , still a WiP . No dynamic scraping ... This script uses :

Cheerio Javascript
Axios

How to use

  • Install and run
npm install
npm run scrapy
  • Change the website and add yours
axios.get("https://chouftv.ma/press");
  • Change the elements by the ones you desire
$(".description").each((index, element) => {
  const title = $(element).children().first().text();
  const links = $(element).children("a").attr("href");
});

Screenshot

It looks weird because i used it on a local news website.
  • Limitations

    This is a shitty scrapper , i'm still learning.

    It doesn't scrap unloaded links.

    Screenshot

In the screenshot above , the button litteraly translates to : LOAD MORE

Since i suck at this, i can't make it load more so i can grab the links

So it only grabs the latest news articles .

That's a blessing and a curse , beacause if clicked , it will load EVERY ARTICLE WRITTEN

since the deployement of the website...

Contact

you can contact me at [email protected]

License

💩Scrapy💩 released under the MIT License.

Made with 💘 by a 👨‍💻 on a 💻 | 2020 | ZTF666 - N.EA

web-scraper's People

Contributors

dependabot[bot] avatar ztf666 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.