Skip to content

Commit

Permalink
Merge pull request #993 from Arnav17Sharma/main
Browse files Browse the repository at this point in the history
Feat: Add new module for FIDE (International Chess Federation) website. #985
  • Loading branch information
nikhil25803 authored May 17, 2024
2 parents 80fe831 + c372e98 commit 57a4799
Show file tree
Hide file tree
Showing 5 changed files with 353 additions and 51 deletions.
21 changes: 21 additions & 0 deletions dev-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,27 @@ obj = espncricinfo.Espncricinfo()
| `.get_news()` | Returns a latest news from ESPNCricinfo. |
| `.get_livescores()` | Returns a list of live matches from ESPNCricinfo. |

### FIDE

```python
from scrape_up import fide
```

Create an instance of `FIDE` class.

```python
obj = fide.FIDE()
```

| Methods | Details |
| ------------------------ | --------------------------------------------------- |
| `.get_events()` | Returns all the major chess events of 2024. |
| `.get_open_ratings()` | Returns a list of top 100 open category players. |
| `.get_women_ratings()` | Returns a list of top 100 women category players. |
| `.get_juniors_ratings()` | Returns a list of top 100 juniors category players. |
| `.get_girls_ratings()` | Returns a list of top 100 girls category players. |
| `.get_news()` | Returns a list of top chess/fide news. |

# Magic Bricks

Create an instance of `MagicBricks` class
Expand Down
101 changes: 50 additions & 51 deletions documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ Create an object of class `Contest`.
hackerank = hackerrank.Contest()
```

| Methods | Details |
| --------------------- | ------------------------------------------------------------------- |
| `active_contests()` | Returns information on active contests like title, status, and link.|
| `archived_contests()` | Returns information regarding archived contests. |
| Methods | Details |
| --------------------- | -------------------------------------------------------------------- |
| `active_contests()` | Returns information on active contests like title, status, and link. |
| `archived_contests()` | Returns information regarding archived contests. |

---

Expand All @@ -300,12 +300,12 @@ Create an instance of `Hashnode` class.
blogs = hashnode.Hashnode()
```

| Methods | Details |
| ----------------- | ------------------------------------------------------------------------------------------------------ |
| `.get_feed()` | Returns the blogs with title, descriptions, author, read time, like and comment count, date, and link. |
| `.get_featured()` | Returns the featured blogs with title, descriptions, author, like and comment count, date, and link. |
| `.get_recent()` | Returns the recent blogs with title, descriptions, author, like and comment count, date, and link. |
| `.search(topic)` | Returns the blogs with title, descriptions, author, like and comment count, date, and link for a topic.|
| Methods | Details |
| ----------------- | ------------------------------------------------------------------------------------------------------- |
| `.get_feed()` | Returns the blogs with title, descriptions, author, read time, like and comment count, date, and link. |
| `.get_featured()` | Returns the featured blogs with title, descriptions, author, like and comment count, date, and link. |
| `.get_recent()` | Returns the recent blogs with title, descriptions, author, like and comment count, date, and link. |
| `.search(topic)` | Returns the blogs with title, descriptions, author, like and comment count, date, and link for a topic. |

---

Expand Down Expand Up @@ -361,14 +361,14 @@ Create an instance of `Questions` class.
questions = askubuntu.Questions("topic")
```

| Methods | Details |
| --------------------------- | ---------------------------------------------------------------------------------------------------- |
| `.getNewQuestions()` | Returns the new questions, views, votes, answer counts, and descriptions in JSON format. |
| `.getActiveQuestions()` | Returns the active questions, views, votes, answer counts, and descriptions in JSON format. |
| `.getUnansweredQuestions()` | Returns the unanswered questions, views, votes, answer counts, and descriptions in JSON format. |
| `.getBountiedQuestions()` | Returns the bountied questions, views, votes, answer counts, and descriptions in JSON format. |
| `.getFrequentQuestions()` | Returns the frequently asked questions, views, votes, answer counts, and descriptions in JSON format.|
| `.getHighScoredQuestions()` | Returns the most voted questions, views, votes, answer counts, and descriptions in JSON format. |
| Methods | Details |
| --------------------------- | ----------------------------------------------------------------------------------------------------- |
| `.getNewQuestions()` | Returns the new questions, views, votes, answer counts, and descriptions in JSON format. |
| `.getActiveQuestions()` | Returns the active questions, views, votes, answer counts, and descriptions in JSON format. |
| `.getUnansweredQuestions()` | Returns the unanswered questions, views, votes, answer counts, and descriptions in JSON format. |
| `.getBountiedQuestions()` | Returns the bountied questions, views, votes, answer counts, and descriptions in JSON format. |
| `.getFrequentQuestions()` | Returns the frequently asked questions, views, votes, answer counts, and descriptions in JSON format. |
| `.getHighScoredQuestions()` | Returns the most voted questions, views, votes, answer counts, and descriptions in JSON format. |

---

Expand Down Expand Up @@ -421,13 +421,13 @@ Create an instance of the `CovidInfo` class.
response = covidinfo.CovidInfo()
```

| Methods | Details |
| -------------------- | --------------------------------------------------------------- |
| `.covid_data()` | Returns the list of all covid data scraped from the website. |
| `.total_cases()` | Returns the count of total covid cases all over the world. |
| `.total_deaths()` | Returns the count of deaths covid cases all over the world. |
| `.total_recovered()` | Returns the count of recovered covid cases all over the world. |
| `.latest_news()` | Return the latest news of the day. |
| Methods | Details |
| -------------------- | -------------------------------------------------------------- |
| `.covid_data()` | Returns the list of all covid data scraped from the website. |
| `.total_cases()` | Returns the count of total covid cases all over the world. |
| `.total_deaths()` | Returns the count of deaths covid cases all over the world. |
| `.total_recovered()` | Returns the count of recovered covid cases all over the world. |
| `.latest_news()` | Return the latest news of the day. |

---

Expand Down Expand Up @@ -473,15 +473,15 @@ Create an instance of `Dribbble` class.
shots = dribbble.Dribbble()
```

| Methods | Details |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `.get_shots()` | Returns the latest shots along with their title, designer, designer URL, like and view count, and link. |
| `.search(topic)` | Returns the latest shots along with their title, designer, designer URL, like and view count, and link for the searched topic. |
| `.get_animation()` | Returns the latest animation along with their title, designer, designer URL, like and view count, and link. |
| `.get_branding()` | Returns the latest branding along with their title, designer, designer URL, like and view count, and link. |
| `.get_illustration()` | Returns the latest illustration along with their title, designer, designer URL, like and view count, and link. |
| `.get_mobile()` | Returns the latest mobile shots along with their title, designer, designer URL, like and view count, and link. |
| `.get_webdesign()` | Returns the latest web-design shots along with their title, designer, designer URL, like and view count, and link. |
| Methods | Details |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `.get_shots()` | Returns the latest shots along with their title, designer, designer URL, like and view count, and link. |
| `.search(topic)` | Returns the latest shots along with their title, designer, designer URL, like and view count, and link for the searched topic. |
| `.get_animation()` | Returns the latest animation along with their title, designer, designer URL, like and view count, and link. |
| `.get_branding()` | Returns the latest branding along with their title, designer, designer URL, like and view count, and link. |
| `.get_illustration()` | Returns the latest illustration along with their title, designer, designer URL, like and view count, and link. |
| `.get_mobile()` | Returns the latest mobile shots along with their title, designer, designer URL, like and view count, and link. |
| `.get_webdesign()` | Returns the latest web-design shots along with their title, designer, designer URL, like and view count, and link. |

---

Expand Down Expand Up @@ -608,9 +608,9 @@ Create an instance of `FlipkartLaptops` class.
item = flipkart.FlipkartLaptops()
```

| Methods | Details |
| ------------ | ---------------------------------------- |
| `.laptops()` | Returns the list of laptops with details.|
| Methods | Details |
| ------------ | ----------------------------------------- |
| `.laptops()` | Returns the list of laptops with details. |

---

Expand All @@ -626,10 +626,10 @@ Create an instance of `Flyrobu` class.
flyrobu = flyrobu.Flyrobu()
```

| Methods | Details |
| ------------------------------------ | --------------------------------------------------------------------------------------------------------------- |
| `.search(keyword)` | Returns the json data of all the details related to search by informing about the total amount of items found. |
| `.get_product_details(product_name)` | Returns the json data of the product details based on the given `product_name`. |
| Methods | Details |
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------- |
| `.search(keyword)` | Returns the json data of all the details related to search by informing about the total amount of items found. |
| `.get_product_details(product_name)` | Returns the json data of the product details based on the given `product_name`. |

---

Expand Down Expand Up @@ -706,9 +706,9 @@ Create an instance of `Celeb` class.
celeb = imdb.Celeb()
```

| Methods | Details |
| --------------- | ------------------------------------------------------ |
| `.top_celebs()` | Returns the name, roles, and famous movie of the celeb.|
| Methods | Details |
| --------------- | ------------------------------------------------------- |
| `.top_celebs()` | Returns the name, roles, and famous movie of the celeb. |

#### IMDB - Indian Movies

Expand All @@ -718,9 +718,9 @@ Create an instance of `IndianMovies` class.
indianmovies = imdb.IndianMovies()
```

| Methods | Details |
| ---------------------- | --------------------------------------------- |
| `.top_indian_movies()` | Returns the current list of top Indian movies.|
| Methods | Details |
| ---------------------- | ---------------------------------------------- |
| `.top_indian_movies()` | Returns the current list of top Indian movies. |

#### IMDB - Box Office

Expand All @@ -730,7 +730,6 @@ Create an instance of `BoxOffice` class.
boxoffice = imdb.BoxOffice()
```

| Methods | Details |
| --------------- | ------------------------------------------------------------------------------ |
| `.top_movies()` | Returns the top box office movies, weekend and total gross, and weeks released.|

| Methods | Details |
| --------------- | ------------------------------------------------------------------------------- |
| `.top_movies()` | Returns the top box office movies, weekend and total gross, and weeks released. |
3 changes: 3 additions & 0 deletions src/scrape_up/fide/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .fide import FIDE

__all__ = ["FIDE"]
Loading

0 comments on commit 57a4799

Please sign in to comment.