Browse Source

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.
pull/6/head
Bonface Munyoki 1 year ago
parent
commit
5faea0c3e1
Signed by: bonfacemunyoki GPG Key ID: F5BBAE1E0392253F
  1. 3
      gn/packages/twint.scm
  2. 11
      python-twint-token.patch

3
gn/packages/twint.scm

@ -199,7 +199,8 @@
(base32
"1bixwrwh1v7vpv0y6skgkml8zm82w00qwkvd6q79pkdj3hczha75"))
(patches (search-patches "python-twint-userlist.patch"
"python-twint-mentions.patch"))))
"python-twint-mentions.patch"
"python-twint-token.patch"))))
(build-system python-build-system)
(arguments
`(#:tests? #f

11
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')})
Loading…
Cancel
Save