ce scraper(coursera scraper)
This is a simple library that helps in getting some data from coursera
which can be used by content aggregators
usage
I, installing the packaged distribution from pypi
pip install ce-scraper
1. simple search feature
this feature gives us the first 10 results of the search
to perform a simple search..
first import the search_courses module and call the
from ce_scraper import search_courses
courses=search_courses.simple_search(search_phrase='machine learning',type='json')
print(courses)
##Output
[
{
"course_title": "Machine Learning",
"partner": "Stanford University",
"rating_value": "4.9",
"rating_count": "154,848",
"enrollment_numbers": "3.9m",
"course_difficulty": "Mixed",
"type": "COURSE"
},
{
"course_title": "Deep Learning",
"partner": "DeepLearning.AI",
"rating_value": "4.8",
"rating_count": "117,652",
"enrollment_numbers": "990k",
"course_difficulty": "Intermediate",
"type": "SPECIALIZATION"
},
{
"course_title": "Machine Learning",
"partner": "University of Washington",
"rating_value": "4.6",
"rating_count": "14,496",
"enrollment_numbers": "400k",
"course_difficulty": "Intermediate",
"type": "SPECIALIZATION"
},
{
"course_title": "Mathematics for Machine Learning",
"partner": "Imperial College London",
"rating_value": "4.6",
"rating_count": "10,371",
"enrollment_numbers": "250k",
"course_difficulty": "Beginner",
"type": "SPECIALIZATION"
},
{
"course_title": "IBM Machine Learning",
"partner": "IBM",
"rating_value": "4.6",
"rating_count": "211",
"enrollment_numbers": "11k",
"course_difficulty": "Intermediate",
"type": "PROFESSIONAL CERTIFICATE"
},
{
"course_title": "Applied Data Science with Python",
"partner": "University of Michigan",
"rating_value": "4.5",
"rating_count": "28,245",
"enrollment_numbers": "700k",
"course_difficulty": "Intermediate",
"type": "SPECIALIZATION"
},
{
"course_title": "Machine Learning for All",
"partner": "University of London",
"rating_value": "4.7",
"rating_count": "2,290",
"enrollment_numbers": "80k",
"course_difficulty": "Beginner",
"type": "COURSE"
},
{
"course_title": "IBM Data Science",
"partner": "IBM",
"rating_value": "4.6",
"rating_count": "68,872",
"enrollment_numbers": "740k",
"course_difficulty": "Beginner",
"type": "PROFESSIONAL CERTIFICATE"
},
{
"course_title": "Naive Bayes 101: Resume Selection with Machine Learning",
"partner": "Coursera Project Network",
"rating_value": "Not Available",
"rating_count": "Not Available",
"enrollment_numbers": "Not Available",
"course_difficulty": "Intermediate",
"type": "GUIDED PROJECT"
},
{
"course_title": "Advanced Machine Learning",
"partner": "HSE University",
"rating_value": "4.4",
"rating_count": "3,701",
"enrollment_numbers": "300k",
"course_difficulty": "Advanced",
"type": "SPECIALIZATION"
}
]
search_phrase is the key word that is used to search the courses
type is the type of file we want from the search result.
these are the supported values of type on this release.
i. list
ii. json
iii. dataframe
2. Advanced Search
To perform the advance search we call the advance search in the search course module
with a dictionary of filters as an argument.
this feature currently supports only page number as a filter.
from ce_scraper import search_courses
courses=search_courses.advanced_search(search_phrase='deep learning', filters={'pages': 2}, type=list)
print(courses)
The above code searches with key word deep learning and returns the courses
from two pages result on the coursera page which is around 30 courses.
More filters and features will be included in the next release of this library.
Metadata
Release files for ce-scraper 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ce_scraper-0.0.2.tar.gz | 3.9 kB | Without provenance | Details for ce_scraper-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ce_scraper-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for ce_scraper-0.0.2-py3-none-any.whl |
Total release size: 8.5 kB
Release files / ce_scraper-0.0.2.tar.gz
| Download URL | ce_scraper-0.0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d3a6f154e53880e7a22304fe4513df9ccf397ec448b7ce6496bad802546e0bf
|
|
BLAKE2b-256 checksum How to use checksums |
a9c742853a4e647f62024f56c496c5a8c369b3d232dfe79c0697a6ddb38b66bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / ce_scraper-0.0.2-py3-none-any.whl
| Download URL | ce_scraper-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c652c8b3db744b0fe1893b699f312dcaf049a8627e540f1e740aa2ba7e175af5
|
|
BLAKE2b-256 checksum How to use checksums |
c6239ae85de9298fbed10bd9dcdce4a7a9c98db369c46f6162de464acd27399f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for ce-scraper 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.