Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

bad syntax in line 2... and it line 106 #8

Open
FFcafe1 opened this issue Sep 3, 2019 · 1 comment
Open

bad syntax in line 2... and it line 106 #8

FFcafe1 opened this issue Sep 3, 2019 · 1 comment

Comments

@FFcafe1
Copy link

FFcafe1 commented Sep 3, 2019

i launched the script but i have this error:
x535@x535-pc:~/Descargas/gquestions-master$ python gquestions.py File "gquestions.py", line 2 SyntaxError: Non-ASCII character '\xe2' in file gquestions.py on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
so, i decided to deleted all started words:
`usage='''
❓❔👾 Gquestions CLI Usage ❔❓

🔍 Usage:
gquestions.py query (en|es) [depth ] [--csv] [--headless]
gquestions.py (-h | --help)

💡 Examples:
▶️ gquestions.py query "flights" en Search "flights" in English and export in html
▶️ gquestions.py query "flights" en --headless Search headlessly "flights" in English and export in html
▶️ gquestions.py query "vuelos" es --csv Search "vuelos" in Spanish and export in html and csv
▶️ gquestions.py query "vuelos" es depth 1 Search "vuelos" in Spanish with a depth of 1 and export in html
▶️ gquestions.py -h Print this message

👀 Options:
-h, --help

'''
Finally, when i try to launch again the script, i have this error: 'x535@x535-pc:~/Descargas/gquestions-master$ python gquestions.py File "gquestions.py", line 106 logging.info(f"clicking on ... {el.text}") ^ SyntaxError: invalid syntax

@shyamzzp
Copy link

Actually you dont need any logging for this particular one. You can remove the same logging statement.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants