Skip to main content

This Python script utilizes Selenium to scrape data from Coursera, providing detailed information about various courses such as link, title, rating, recent views, students enrolled, time requirement, skills, learner count, difficulty level, duration, and sub-course details.

Project description

Coursera Scraper

This repository contains a Python script that utilizes Selenium to scrape data from Coursera.

Scraped Fields

The script scrapes the following fields for each course:

  1. Link: Link of the course
  2. Title: The title of the course.
  3. Institute: The institution offering the course (if available).
  4. Rating: The course rating.
  5. Recent Views: The number of recent views for the course.
  6. Students Enrolled: The number of students enrolled in the course.
  7. Time Requirement: The approximate time required to complete the course.
  8. Skills: A list of skills covered in the course.
  9. Learner Count: The total number of learners who have taken the course.
  10. Difficulty Level: The difficulty level of the course.
  11. Duration: The duration of the course.
  12. Sub-course: Additional information about the course or its sub-courses.

The scraped data is stored in a dictionary format for each course.

Prerequisites

You can install the required Python packages by running the following command:

pip install coursera-scraper

from scraper.main import scraper

for course_detail in scraper(keyword='python'):
    # do some processing on course detail

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coursera-scraper-0.1.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coursera_scraper-0.1.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file coursera-scraper-0.1.3.tar.gz.

File metadata

  • Download URL: coursera-scraper-0.1.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for coursera-scraper-0.1.3.tar.gz
Algorithm Hash digest
SHA256 53b216c69cc31156943ebb877fd0a509cade6a4c3d1d557de14d4d3865df19a1
MD5 4ad9b7ca1afe944f14e9d779cbaa6a79
BLAKE2b-256 bca93817d7f6c73f0c109d35ffc4514fcbcd1d794d16a1224137c695d5e344ed

See more details on using hashes here.

File details

Details for the file coursera_scraper-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for coursera_scraper-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 46dca9e6f1cc4734ba8a2b6319cbdb66972231f85c89c66ed29a9b6552568c1d
MD5 c66ce0e75eac695415008ab4c1b25198
BLAKE2b-256 72517add00859e587f34858e1e205c770b0d184c427a9fdaec0d9268af83383e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page