diff --git a/documentation.md b/documentation.md index ba465be3..f9a7b2cd 100644 --- a/documentation.md +++ b/documentation.md @@ -25,7 +25,7 @@ per user.followers() ## The platforms we cover. -- [GitHub](https://github.com/Clueless-Community/scrape-up/blob/main/documentation.md#github) +- [GitHub](https://github.com/Clueless-Community/scrape-up/blob/main/documentation.md#github) - [GitHub Education](https://github.com/Clueless-Community/scrape-up/blob/main/documentation.md#github-education) - [Codechef](https://github.com/Clueless-Community/scrape-up/blob/main/documentation.md#codechef) - [Hacker News](https://github.com/Clueless-Community/scrape-up/blob/main/documentation.md#hacker-news) @@ -226,10 +226,10 @@ articles = hackernews.Articles() from scrape_up import hackerearth ``` -Create an object of class `Hackerearth` +Create an object of class `Challanges` ```python -hackerearth = hackerearth.Hackerearth() +hackerearth = hackerearth.Challanges() ``` | Methods | Details | @@ -243,7 +243,7 @@ hackerearth = hackerearth.Hackerearth() ### HackerRank ```py -from scrape_up import hackerearth +from scrape_up import hackerrank ``` ### Scrape user details @@ -251,7 +251,7 @@ from scrape_up import hackerearth Create an object of class `User`. ```python -hackerank = User() +hackerank = hackerrank.User() ``` | Methods | Details | @@ -264,7 +264,7 @@ hackerank = User() Create an object of class `Contest`. ```python -hackerank = Contest() +hackerank = hackerrank.Contest() ``` | Methods | Details | diff --git a/src/scrape_up/Hackerearth/Hackerearth.py b/src/scrape_up/Hackerearth/Hackerearth.py index e4385353..5edc9880 100644 --- a/src/scrape_up/Hackerearth/Hackerearth.py +++ b/src/scrape_up/Hackerearth/Hackerearth.py @@ -2,11 +2,11 @@ import requests -class Hackerearth: +class Challenges: """ - First, create an object of class `Hackerearth` + First, create an object of class `Challenges` ```python - hackerearth = Hackerearth() + hackerearth = Challenges() ``` | Methods | Details | | ---------------- | ------------------------------------------------------ | @@ -25,7 +25,7 @@ def get_ongoing(self): Get the details of ongoing challenges on Hackerearth.\n Example ```python - hacker = Hackerearth() + hacker = Challenges() hacker.get_ongoing() ``` Returns: @@ -72,7 +72,7 @@ def get_upcoming(self): Get the details of ongoing challenges on Hackerearth.\n Example ```python - hacker = Hackerearth() + hacker = Challenges() hacker.get_upcoming() ``` Returns: @@ -119,7 +119,7 @@ def get_hiring(self): Fetches and returns information about ongoing job opportunities from HackerEarth's jobs page.\n Example ```python - hacker = Hackerearth() + hacker = Challenges() hacker.get_hiring() ``` Example output: @@ -159,4 +159,4 @@ def get_hiring(self): challenge.append(data) return challenge except: - return None \ No newline at end of file + return None diff --git a/src/scrape_up/Hackerearth/__init__.py b/src/scrape_up/Hackerearth/__init__.py index c435292f..9578c71a 100644 --- a/src/scrape_up/Hackerearth/__init__.py +++ b/src/scrape_up/Hackerearth/__init__.py @@ -1,3 +1,3 @@ -from .hackerearth import Hackerearth +from .hackerearth import Challenges -__all__ = ["Hackerearth"] +__all__ = ["Challenges"]