aboutsummaryrefslogtreecommitdiff
path: root/python-twint-token.patch
diff options
context:
space:
mode:
authorBonfaceKilz2020-12-17 15:02:14 +0300
committerBonfaceKilz2020-12-17 15:02:14 +0300
commit5faea0c3e10471d142e6509499cff2f2c234aa45 (patch)
tree170e756067e70fbba0e9cb1b1f679e9a745f1883 /python-twint-token.patch
parent1eb8f35d65afd67cfd8653d06e39c1f4d2ff6588 (diff)
downloadguix-bioinformatics-5faea0c3e10471d142e6509499cff2f2c234aa45.tar.gz
gn: python-twint: Patch Token class in order to get refreshTokens
* gn/packages/twint.scm [patches]: Add python-twint-token.patch. * python-twint-token.patch: New file.
Diffstat (limited to 'python-twint-token.patch')
-rw-r--r--python-twint-token.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/python-twint-token.patch b/python-twint-token.patch
new file mode 100644
index 0000000..570ca8b
--- /dev/null
+++ b/python-twint-token.patch
@@ -0,0 +1,11 @@
+diff --git a/twint/token.py b/twint/token.py
+index 0eeb0dc..63b637a 100644
+--- a/twint/token.py
++++ b/twint/token.py
+@@ -20,0 +21,6 @@ class Token:
++ self._session.headers.update(
++ {'User-Agent':
++ ('Mozilla/5.0 '
++ '(Windows NT 10.0;'
++ ' Win64; x64; rv:78.0)'
++ ' Gecko/20100101 Firefox/78.0')})