Coder Social home page Coder Social logo

aravind-selvam / course_web_scrapping Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 62 KB

iNeuron Webscraper Python Project using beautifulsoup and flask

Procfile 0.13% Python 58.75% CSS 24.81% HTML 16.31%
flask heroku ineuron ineuron-ai project pycharm-ide python

course_web_scrapping's Introduction

forthebadge made-with-python


Logo

Web Scraping Project

Project Files
Explore the Repo »

View app code · Scraper module · Heroku Link

👨‍💻 About The Project

  • Building a Web scraper for iNeuron website to get all courses information.
  • Storing the scrapped data to MongoDB.
  • Building a Flask App to view scrapped data.
  • Deploying the app in Heroku or AWS.

❇️ Usage

  • Web scraping is a term for various methods used to collect data from across the Internet.
  • This web scraper extracts all the data on iNeuron website's all course information.
  • The scrapped data is then stored to user specified Mongodb database.

📌 Steps

  • Installing Python, PyCharm, Monogodb, Git to Computer.
  • Creating Flask app by importing Flask module.
  • Getting information about iNeuron website.
  • Gathering data from most static websites is a relatively straightforward process. However, dynamic website like iNeuron, JavaScript is used to load their content. These web pages require a different approach to collecting the desired public data.
  • Scraping dynamic website using one of the most popular Python libraries, BeautifulSoup which can load the data into Json format by using "script" in soup.find method.

Scraping and Inserting to DB

  • With the Json data all the required data is stored into Dictionary format.
  • Extracted all the course data using loops and stored as list.
  • Mongodb Altas is used as DB here, with pymongo library mongodb is connected to python.
  • Database and collections created via python and the list of dictionaries is uploaded using collection.insert_many method.
  • Created an app.py to initialize

Flask

  • Importing the Flask module and creating a Flask web server from the Flask module.
  • Create an object app in flask class with __name__ which represents current app.py file.
  • Create / route to render default page html.
  • Create a route /course to get user input and if keyword is present in the Mongo DB it is shown in results.html page.
  • Run the flask app with app.run() code.

Heroku Deployment

  • Create new repo in Github and push all the data using Git.
  • Install Heroku CLI and login using heroku login and setup the app in Heroku Web.
  • Connect with app heroku git:remote -a appname
  • Push to Heroku using git push heroku main
  • Heroku Deployment Link

(back to top)

🖥️ Deployed app demo

Recording.1.mp4

✨App Screenshot

Product Name Screen Shot

✨ Mongodb Screenshot

Screenshot 2022-04-28 170938

🧰 Technologies used

Language | Python Framework & Library | Flask Language | MongoDB

🔧 Tools used

Tools used | PyCharm Tools used | Git Tools used | GitHub Tools used | Postman Tools used | Heroku

(back to top)

📌 Contact

Aravind Selvam | LinkedIn Aravind Selvam | G Mail GodWin1100 | GitHub

(back to top)

📌 Acknowledgments

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.