Skip to content

Commit

Permalink
fix: patching minor bugs, typos (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
juhosyrjanen authored Dec 19, 2022
1 parent c7a0008 commit 73324e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tweet.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#v!/usr/bin/python
#!/usr/bin/python
# -*- coding: utf-8 -*-

import requests
Expand All @@ -15,7 +15,7 @@
response = requests.get(
url='https://proxy.scrapeops.io/v1/',
params={
'api_key': (api_key)',
'api_key': '(api_key)',
'url': 'https://www.k-ruoka.fi/kauppa/tuote/pirkka-iii-olut-033l-45-tlk-si-6410405091260',
'render_js': 'true',
'residential': 'true',
Expand All @@ -34,7 +34,7 @@
price = soup.find('span', class_='price')
logging.info('Price found,' + price.text + '€')
except:
logging.error('Price not found')
logging.error('Price not found, parser failed.')
exit()

# Transform price into float
Expand Down

0 comments on commit 73324e7

Please sign in to comment.