DSMP By CampusX
Here, you can get all the resources like π Links of π Notes and π Notebooks provided in the DSMP Course.
Author: Anshul Raj Verma
Warning
The listed resource is not suitable for the Unpaid/Free User (who have not bought the course) because it only consists the paid lecture's notes and links which are provided in the description by The Mentor.
CampusX_Praise.mp4
- Data Collection: Gathered data from the HTML structure of the course's website.
- Script Development: Developed Python scripts responsible for parsing HTML and extracting essential data required for subsequent requests.
- HTTP Requests: Performed a series of Http GET requests to the website to obtain session resources, particularly video sessions in the current implementation.
- Testing: Implemented a suite of tests for the
course_parser.py
script to ensure robust and reliable HTML parsing. - Data Structure Maintenance: Maintained the integrity and structure of the acquired data and resources, ensuring they are ready for presentation on a web page.
- Documentation and Presentation: Utilized
mkdocs
along with themkdocs-material
theme/extension to seamlessly generate a professional-looking web page. - Continuous Integration and Deployment (CI/CD): Employed Github Actions to automate the build and deployment processes, ensuring the web page is always up-to-date.
- Web Hosting: Leveraged Github Pages as a reliable hosting solution to make the web page accessible to a wider audience.
By following these workflows, the project ensures efficient data extraction, robust testing, proper documentation, and automated deployment, ultimately resulting in a well-maintained and accessible web page hosted on Github Pages.
π₯³ You can get all the course's resources like .pdf
, .ipynb
, .docx
, .pptx
, .xlsx
and .py
files in ποΈ resources
directory.
Caution
If you get any problem while opening a file then try to change its file extension. My program is not good at inferring file extension π. Otherwise, raise issue.
Resources File Structure
./resources
βββ README.md
βββ DSMP
β βββ Parent Session1
β β βββ Lecture1
β β β βββ Resource1
β β β βββ Resource2
β β βββ Lecture2
β β βββ Resource1
β β βββ Resource2
β βββ Parent Session2
β βββ Lecture1
β βββ Resource1
β βββ Resource2
βββ Extra # Some extra stuffs from course (added manually)
- Clone the repository.
git clone https://github.com/arv-anshul/campusx-dsmp
- This project is managed using
rye
. So, install it using:
curl -sSf https://rye-up.com/get | bash
- Rename
example.env
to.env
and define the required environment variables.
π₯ Prerequisites
- You have to purchase the course.
- Open the course's website and developer tools of browser.
- Go to Networks Tab.
- Select the request where the website makes a call for the data to display.
- In the "Networks" tab, find the request that corresponds to the data retrieval call. You may filter the requests by XHR or fetch type for AJAX requests.
- Look for the request URL related to fetching data or making an API call.
- Copy
c_ujwt
andSESSIONID
values from thecookies
headers of that request.- Within the selected request, locate the "Headers" tab.
- Look for the "Cookies" section under "Request Headers" or "Response Headers."
- Copy the values of
c_ujwt
andSESSIONID
. These are essential for authenticating your requests.
# Define these to construct cookies for making requests
C_UJWT=""
SESSION_ID=""
- If you want to fetch resources from the website then run the
main.py
script. I have written all the steps to fetch the resources of the sub-topics.
You can configure the
main.py
to fetch different type of resources like"video", "assignment"
.
rye run fetch
- Organise
data/
files usingrye run organise
command. This sorted all the data files as require.
If you have any issue or query related to this project you can raise here.