1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
|
(define-module (gn packages twint)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
#:use-module (guix build-system python)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (gnu packages check)
#:use-module (gnu packages geo)
#:use-module (gnu packages python)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-science)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages sphinx)
#:use-module (gnu packages time))
(define-public python-googletransx
(package
(name "python-googletransx")
(version "2.4.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "googletransx" version))
(sha256
(base32
"1nnn08cqc57d8lq1qp82fazk1x83ccdi410hmzlbnajw6vinfrf4"))))
(build-system python-build-system)
(arguments
`(#:tests? #f))
(propagated-inputs
`(("python-requests" ,python-requests)))
(home-page
"https://github.com/x0rkov/py-googletrans")
(synopsis
"Free Google Translate API for Python. Translates totally free of charge.")
(description
"Free Google Translate API for Python. Translates totally free of charge.")
(license license:expat)))
(define-public python-statistics
(package
(name "python-statistics")
(version "1.0.3.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "statistics" version))
(sha256
(base32
"0f61hrj25p60kvf09nqysd6xlccm5dmx1jl8akfjvgq71fw7khrd"))))
(build-system python-build-system)
(arguments
`(#:tests? #f))
(propagated-inputs
`(("python-docutils" ,python-docutils)))
(home-page "UNKNOWN")
(synopsis
"A Python 2.* port of 3.4 Statistics Module")
(description
"A Python 2.* port of 3.4 Statistics Module")
(license #f)))
(define-public python-fake-useragent
(package
(name "python-fake-useragent")
(version "0.1.11")
(source
(origin
(method url-fetch)
(uri (pypi-uri "fake-useragent" version))
(sha256
(base32
"0dfz3bpmjmaxlhda6hfgsac7afb65pljibi8zkp9gc0ffn5rj161"))))
(build-system python-build-system)
(arguments
`(#:tests? #f))
(home-page
"https://github.com/hellysmile/fake-useragent")
(synopsis
"Up to date simple useragent faker with real world database")
(description
"Up to date simple useragent faker with real world database")
(license #f)))
(define-public python-cchardet
(package
(name "python-cchardet")
(version "2.1.6")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cchardet" version))
(sha256
(base32
"1cs6y59qhbal8fgbyjk2lpjykh8kfjhq16clfssylsddb4hgnsmp"))))
(build-system python-build-system)
(arguments
`(#:tests? #f))
(home-page "https://github.com/PyYoshi/cChardet")
(synopsis
"cChardet is high speed universal character encoding detector.")
(description
"cChardet is high speed universal character encoding detector.")
(license #f)))
;; TODO: Upstream
(define-public python-socks
(package
(name "python-socks")
(version "1.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-socks" version))
(sha256
(base32
"1w5gdlz6jaflzmzf8d6s81k4qwzb0q8xq2s76bj04sv11nm2lkiv"))))
(build-system python-build-system)
(propagated-inputs
`(("python-async-timeout" ,python-async-timeout)
("python-trio" ,python-trio)
("python-curio" ,python-curio)))
(home-page
"https://github.com/romis2012/python-socks")
(synopsis
"Core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality for Python")
(description
"Core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality for Python")
(license #f)))
;; TODO: Upstream
(define-public python-aiohttp-3.7.2
(package
(inherit python-aiohttp)
(version "3.7.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aiohttp" version))
(sha256
(base32
"0w30pq8x4sf9bhr29nrb4qxhm75mpz2a51nkalrd9rj1k3simnn6"))))
(arguments
`(#:tests? #f))
(propagated-inputs
`(("python-typing-extensions" ,python-typing-extensions)
,@(package-propagated-inputs python-aiohttp)))))
;; TODO: Upstream
(define-public python-aiohttp-socks-0.5.5
(package
(inherit python-aiohttp-socks)
(name "python-aiohttp-socks-0.5.5")
(version "0.5.5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/romis2012/aiohttp-socks")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0ivl4x12pscmpyn7z14h0lr8shsjc244pbvfafi1fmp1ddfzgw1l"))))
(arguments
`(#:tests? #f))
(propagated-inputs
`(("python-aiohttp" ,(specification->package "python-aiohttp@3.7.2"))
("python-socks" ,python-socks)))))
(define-public python-yarl-1.6.2
(package
(inherit python-yarl)
(name "python-yarl-1.6.2")
(version "1.6.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "yarl" version))
(sha256
(base32
"1dk6nyhkbhmlfqxislb9a8hqdi3s8jyip3krk6c8c92pkasljny4"))))
(propagated-inputs
`(("python-typing-extensions" ,python-typing-extensions)
,@(package-propagated-inputs python-yarl)))))
(define-public python-twint
(package
(name "python-twint")
(version "2.1.20")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/twintproject/twint")
(commit "a45a8ac719d5710e7da92f77d9801b351e505c1f")))
(sha256
(base32
"1bixwrwh1v7vpv0y6skgkml8zm82w00qwkvd6q79pkdj3hczha75"))
(patches (search-patches "python-twint-userlist.patch"
"python-twint-mentions.patch"
"python-twint-token.patch"))))
(build-system python-build-system)
(arguments
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'remove-deps
(lambda _
(substitute* "setup.py"
(("'dataclasses',") ""))))
(add-after 'unpack 'twint-hot-fixes
(lambda _
;; TODO: Upstream this fix
(begin
(substitute* "twint/format.py"
((", t.replies_count)")
", str(t.replies_count))"))
(substitute* "twint/format.py"
((", t.retweets_count)")
", str(t.retweets_count))"))
(substitute* "twint/format.py"
((", t.quote_url)")
", str(t.quote_url))"))
(substitute* "twint/format.py"
((", t.likes_count)")
", str(t.likes_count))"))))))))
(propagated-inputs
`(("python-pycares" ,python-pycares)
("python-aiohttp-socks" ,python-aiohttp-socks-0.5.5)
("python-beautifulsoup4" ,python-beautifulsoup4)
("python-cchardet" ,python-cchardet)
("python-elasticsearch" ,python-elasticsearch)
("python-fake-useragent" ,python-fake-useragent)
("python-geopy" ,python-geopy)
("python-yarl" ,python-yarl-1.6.2)
("python-googletransx" ,python-googletransx)
("python-pandas" ,python-pandas)
("python-schedule" ,python-schedule)))
(home-page
"https://github.com/twintproject/twint")
(synopsis
"An advanced Twitter scraping & OSINT tool.")
(description
"An advanced Twitter scraping & OSINT tool.")
(license license:expat)))
|