include qutebrowser in user agent

Co-authored-by: Florian Bruhin <me@the-compiler.org>
This commit is contained in:
Jetfrog28 2022-03-02 03:35:32 -05:00 committed by GitHub
parent ed61390bde
commit b6c658a958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ for argument in sys.argv[1:]:
bang = '!' + argument
r = requests.get('https://duckduckgo.com/',
params={'q': bang + ' SEARCHTEXT'},
headers={'user-agent': 'ripbang'})
headers={'user-agent': 'qutebrowser ripbang'})
searchengine = unquote(re.search("url=[^']+", r.text).group(0))
searchengine = searchengine.replace('url=', '')