Skip to content

iNeuron Webscraper Python Project using beautifulsoup and flask

Notifications You must be signed in to change notification settings

aravind-selvam/course_web_scrapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

iNeuron Webscraper Python Project using beautifulsoup and flask

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published