Skip to content

Commit

Permalink
replace the use of f-strings for .format() since f-strings only work …
Browse files Browse the repository at this point in the history
…with Python 3.6 and onwards
  • Loading branch information
taspinar committed Aug 7, 2019
1 parent 83a98a6 commit 327795c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
@@ -1,5 +1,9 @@
# twitterscraper changelog

# 1.3.1 ( 2019-09-07 )
## Fixed
- Change two uses of f-strings to .format() since f-strings only work well with Python 3.6+

# 1.3.0 ( 2019-09-07 )
## Added
- Added the use of proxies while making an request.
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Expand Up @@ -3,4 +3,3 @@ bs4
lxml
requests
billiard
fake-useragent
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -6,7 +6,7 @@

setup(
name='twitterscraper',
version='1.3.0',
version='1.3.1',
description='Tool for scraping Tweets',
url='https://github.com/taspinar/twitterscraper',
author=['Ahmet Taspinar', 'Lasse Schuirmann'],
Expand Down
2 changes: 1 addition & 1 deletion twitterscraper/__init__.py
Expand Up @@ -5,7 +5,7 @@
Twitter Scraper tool
"""

__version__ = '1.3.0'
__version__ = '1.3.1'
__author__ = 'Ahmet Taspinar'
__license__ = 'MIT'

Expand Down
4 changes: 2 additions & 2 deletions twitterscraper/query.py
Expand Up @@ -324,13 +324,13 @@ def query_user_info(user):
try:
user_info = query_user_page(INIT_URL_USER.format(u=user))
if user_info:
logger.info("Got user information from username {user}")
logger.info("Got user information from username {}".format(user))
return user_info

except KeyboardInterrupt:
logger.info("Program interrupted by user. Returning user information gathered so far...")
except BaseException:
logger.exception("An unknown error occurred! Returning user information gathered so far...")

logger.info(f"Got user information from username {user}")
logger.info("Got user information from username {}".format(user))
return user_info

0 comments on commit 327795c

Please sign in to comment.