Skip to content

Commit 6eecbce

Browse files
author
Aaron Gonzales
committed
updating YAML file reading to reflect new package name
1 parent f94d818 commit 6eecbce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

searchtweets/api_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,12 @@ def validate_count_api(rule_payload, endpoint):
221221

222222
def load_credentials(filename=None, account_type=None):
223223
"""
224-
handlles credeintial managmenet via a YAML file. YAML files should look
224+
Handles credeintial managmenet via a YAML file. YAML files should look
225225
like this:
226226
227227
.. code:: yaml
228228
229-
twitter_search_api:
229+
search_tweets_api:
230230
endpoint: <FULL_URL_OF_ENDPOINT>
231231
account: <ACCOUNT_NAME>
232232
username: <USERNAME>
@@ -254,7 +254,7 @@ def load_credentials(filename=None, account_type=None):
254254
raise KeyError
255255
filename = "~/.twitter_keys.yaml" if filename is None else filename
256256
with open(os.path.expanduser(filename)) as f:
257-
search_creds = yaml.load(f)["twitter_search_api"]
257+
search_creds = yaml.load(f)["search_tweets_api"]
258258

259259
try:
260260

0 commit comments

Comments
 (0)