Skip to content

Commit

Permalink
feat: limited requests to one page for not overload the api
Browse files Browse the repository at this point in the history
  • Loading branch information
makcimerrr committed Jan 8, 2025
1 parent 47d5480 commit c0a08de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/cdi_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def fetch_api_fulltime(bot):

url = "https://jsearch.p.rapidapi.com/search"

querystring = {"query": query_fulltime, "page": "1", "num_pages": "10", "country": "fr", "date_posted": "today",
querystring = {"query": query_fulltime, "page": "1", "num_pages": "1", "country": "fr", "date_posted": "today",
"employment_types": "FULLTIME", "radius": "200"}

headers = {
Expand Down
2 changes: 1 addition & 1 deletion utils/intern_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def fetch_api_intern(bot):

url = "https://jsearch.p.rapidapi.com/search"

querystring = {"query": query_intern, "page": "1", "num_pages": "10", "country": "fr", "date_posted": "today",
querystring = {"query": query_intern, "page": "1", "num_pages": "1", "country": "fr", "date_posted": "today",
"employment_types": "INTERN", "radius": "200"}

headers = {
Expand Down

0 comments on commit c0a08de

Please sign in to comment.