A simple scraping module that gets coursera courses by web scraping. The purpose of this is to provide an alternate way to get list of courses from coursera
- Python
To access the courses
, this application imports the following modules.
import selenium
- Fork the repository and open
courses.py
- Initialize the courses class with
c = Courses("<Course_Name>","<No_of_pages>")
- Use any of the functions to get required data like
c.scrape_all()
- It will return a dictionary containing the list of courses
The functions will return -
{
data : [<List of Dictionaries>],
msg : Course Titles for <Keyword>
}