Skip to content

Commit

Permalink
hijacks another PR to bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
emlazzarin committed Apr 8, 2023
1 parent 4d4cbbf commit ed8c400
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pytrends"
version = "4.9.0"
version = "4.9.1"
description = "Pseudo API for Google Trends"
urls = {homepage = "https://github.com/dreyco676/pytrends"}
requires-python = ">=3.7"
Expand Down
7 changes: 2 additions & 5 deletions pytrends/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,11 +474,8 @@ def trending_searches(self, pn='united_states'):
req_json = self._get_data(
url=TrendReq.TRENDING_SEARCHES_URL,
method=TrendReq.GET_METHOD
)
keys = req_json.keys()
if(pn not in keys):
return pd.DataFrame([])
result_df = pd.DataFrame(req_json[pn])
)[pn]
result_df = pd.DataFrame(req_json)
return result_df

def today_searches(self, pn='US'):
Expand Down

0 comments on commit ed8c400

Please sign in to comment.