-
Notifications
You must be signed in to change notification settings - Fork 135
/
global
253 lines (223 loc) · 10.2 KB
/
global
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
248
249
250
251
252
253
# URLs that are very likely to be endless loops
%25252525
/App_Themes/.+/App_Themes/
/bxSlider/.+/bxSlider/
/bxSlider/bxSlider/
/slides/slides/.+/slides/
/slides/.+/slides/slides/
/slides/slides/slides/
/js/js/.+/js/
/js/.+/js/js/
/js/js/js/
/css/css/.+/css/
/css/.+/css/css/
/css/css/css/
/styles/styles/.+/styles/
/styles/.+/styles/styles/
/styles/styles/styles/
/scripts/scripts/.+/scripts/
/scripts/.+/scripts/scripts/
/scripts/scripts/scripts/
/images/images/.+/images/
/images/.+/images/images/
/images/images/images/
/img/img/.+/img/
/img/.+/img/img/
/img/img/img/
/clientscript/clientscript/.+/clientscript/
/clientscript/.+/clientscript/clientscript/
/clientscript/clientscript/clientscript/
/lib/exe/.*lib[-_]exe[-_]lib[-_]exe[-_]
^https?://{any_start_netloc}/.*&
^https?://{any_start_netloc}/.*amp%3Bamp%3Bamp%3B
^https?://{any_start_netloc}/.+/plugins/ultimate-social-media-plus/.+/like/like/
# URLs that are very likely incorrectly extracted by wpull
/(%5C)+(%22|%27)
/%5C/%5C/
/%27\+[^/]+\+%27
/%22\+[^/]+\+%22
/%27%20\+[^/]+\+%20%27
/%22%20\+[^/]+\+%20%22
/\\+(%22|%27)
/\\+["']
/\\/\\/
/'\+[^/]+\+'
^https?://{any_start_netloc}/.+/%3Ca%20href=
^https?://www\.youtube\.com/.*\[\[.+\]\]
^https?://www\.youtube\.com/.*\{\{.+\}\}
^https?://www\.google\.com/recaptcha/(api|mailhide/d\?)
^https?://www\.google\.com/accounts/AccountChooser
^https?://accounts\.google\.com/(SignUp|ServiceLogin|AccountChooser|a/UniversalLogin)
# CAPTCHAs on ASP.NET sites
^https?://[^/]+/.+/CaptchaImage\.axd
# We don't want to change language
^https?://www\.flickr\.com/change_language\.gne
# Tracking scripts, tracking pixels, analytics
^https?://geo\.yahoo\.com/b\?
^https?://b\.scorecardresearch\.com/
^https?://pixel\.blog\.hu/
^https?://pixel\.redditmedia\.com/pixel/
^https?://alb\.reddit\.com/
^https?://pixel\.(quantserve|wp)\.com/
^https?://(www|ssl)\.google-analytics\.com/(r/)?(__utm\.gif|collect\?)
^https?://p\.opt\.fimserve\.com/
^https?://.+/js-agent\.newrelic\.com/nr-\d{3}(\.min)?\.js$
^https?://.+/stats\.g\.doubleclick\.net/dc\.js$
^https?://.+/js/chartbeat\.js$
^https?://[^/]+\.xiti\.com/hit\.xiti\?
^https?://[^/]+\.services\.livejournal\.com/ljcounter
^https?://beacon\.wikia-services\.com/
^https?://s\d+\.sitemeter\.com/(js/counter\.js|meter\.asp)
^https?://www\.amazon\.com/.+/logging/log-action\.html
# The tracking on warnerbros.com inexplicably links to bogus warnerbros.com/\d+ pages
^https?://www\.warnerbros\.com/\d+$
# Inaccessible and dead sites that are frequently-linked
^https?://i\.dev\.cdn\.turner\.com/
^https?://[^/]+\.corp\.ne1\.yahoo\.com/
^https?://prod-preview\.wired\.com/
^https?://(www\.)?(megaupload|filesonic|wupload)\.com/
# Links to TED and TED embeds are common enough that we need to ignore their
# videos to prevent WARC bloat
^https?://video-subtitle\.tedcdn\.com/
^https?://download\.ted\.com/
# Avoid bloating WARCs with TMZ videos
^https?://tmz\.vo\.llnwd\.net/
# Avoid hitting radio and TV streams, which can hang crawls for a long time.
# Note that we also detect and abort Icecast/SHOUTcast responses in
# wpull_hooks.py, so some of these ignores are no longer necessary.
^https?://([^\./]+\.)?stream\.publicradio\.org/
^https?://av\.rasset\.ie/av/live/
^https?://gcnplayer\.gcnlive\.com/.+
^https?://mp3\.ffh\.de/
^https?://(audio\d?|nfw)\.video\.ria\.ru/
^https?://[^\./]+\.radioscoop\.(com|net):\d+/
^https?://[^\./]+\.streamchan\.org:\d+/
^https?://[^/]*musicproxy\.s12\.de/
^https?://relay\.broadcastify\.com/
^https?://audio\d?\.radioreference\.com/
^https?://[^/]+\.akadostream\.ru(:\d+)?/
^https?://play(\d+)?\.radio13\.ru:8000/
^https?://stream(\d+)?\.media\.rambler\.ru/
^https?://pub(\d+)?\.di\.fm/
^https?://[^/]+\.streamtheworld\.com/
^https?://[^/]+\.gaduradio\.pl/
^https?://r-a-d\.io/.+\.mp3$
^https?://mp3tslg\.tdf-cdn\.com/
^https?://[^/]+/anony/mjpg\.cgi$
^https?://[^/]+/mjpg/video\.mjpg
^https?://air\.radiorecord\.ru(:\d+)?/
^https?://[^/]+\.rastream\.com(:\d+)?/
^https?://audiots\.scdn\.arkena\.com/
^https?://[a-z0-9]+\.cdn\.dvmr\.fr(:\d+)?/.+\.mp3
# Avoid following any kind of 'share' or 'bookmark' link
^https?://(www|draft)\.blogger\.com/(navbar\.g|post-edit\.g|delete-comment\.g|comment-iframe\.g|share-post\.g|email-post\.g|blog-this\.g|delete-backlink\.g|rearrange|blog_this\.pyra)\?
^https?://(www|px\.srvcs)\.tumblr\.com/(impixu\?|share(/link/?)?\?|reblog/)
^https?://plus\.google\.com/share\?
^https?://(apis|plusone)\.google\.com/_/\+1/
^https?://(ssl\.|www\.)?reddit\.com/(login\?dest=|submit\?|static/button/button)
^https?://(www\.)?digg\.com/submit\?
^https?://(www\.)?facebook\.com/(plugins/(share_button|like(box)?)\.php|sharer/sharer\.php|sharer?\.php|dialog/(feed|share))\?
^https?://(www\.)?facebook\.com/v[\d\.]+/plugins/like\.php
^https?://social-plugins\.line\.me/lineit/share
^https?://(www\.)?twitter\.com/(share\?|intent/((re)?tweet|favorite)|home/?\?status=|\?status=)
^https?://platform\d?\.twitter\.com/widgets/tweet_button.html\?
^https?://www\.newsvine\.com/_wine/save\?
^https?://www\.netvibes\.com/subscribe\.php\?
^https?://add\.my\.yahoo\.com/(rss|content)\?
^https?://www\.addtoany\.com/(add_to/|share_save\?)
^https?://www\.addthis\.com/bookmark\.php\?
^https?://([^\.]+\.)?pinterest\.com/pin/create/
^https?://www\.linkedin\.com/(cws/share|shareArticle)\?
^https?://(www\.)?stumbleupon\.com/(submit\?|badge/embed/)
^https?://csp\.cyworld\.com/bi/bi_recommend_pop\.php\?
^https?://share\.flipboard\.com/bookmarklet/popout\?
^https?://flattr.com/submit/auto\?
^https?://(www\.)?myspace\.com/Modules/PostTo/
^https?://www\.google\.com/bookmarks/mark\?
^https?://myweb2\.search\.yahoo\.com/myresults/bookmarklet\?
^https?://vuible\.com/pins-settings/
^https?://news\.ycombinator\.com/submitlink\?
^https?://reporter\.es\.msn\.com/\?fn=contribute
^https?://www\.blinklist\.com/index\.php\?Action=Blink/addblink\.php
^https?://sphinn\.com/index\.php\?c=post&m=submit&
^https?://posterous\.com/share\?
^https?://del\.icio\.us/post\?
^https?://delicious\.com/(save|post)\?
^https?://(www\.)?friendfeed\.com/share\?
^https?://(www\.)?xing\.com/(app/user\?op=share|social_plugins/share\?)
^https?://iwiw\.hu/pages/share/share\.jsp\?
^https?://memori(\.qip)?\.ru/link/\?
^https?://wow\.ya\.ru/posts_(add|share)_link\.xml\?
^https?://connect\.mail\.ru/share\?
^https?://zakladki\.yandex\.ru/newlink\.xml\?
^https?://vkontakte\.ru/share\.php\?
^https?://www\.odnoklassniki\.ru/dk\?st\.cmd=addShare
^https?://www\.google\.com/(reader/link\?|buzz/post\?)
^https?://service\.weibo\.com/share/share\.php\?
^https?://(www\.)?technorati\.com/faves/?\?add=
^https?://bufferapp\.com/add\?
^https?://b\.hatena\.ne\.jp/add\?
^https?://api\.addthis\.com/
^https?://bookmark\.naver\.com/post\?
^https?://(www\.)?instapaper\.com/hello2\?
^https?://getpocket\.com/(save|edit)/?\?
^https?://medium\.com/_/(vote|bookmark|subscribe)/
^https?://telegram\.me/share/url\?
# mail.google.com requires login but shows up on the web surprisingly often
^https?://mail\.google\.com/mail/
# This is the default gravatar that you don't want a million copies of
^https?://(\d|www|secure)\.gravatar\.com/avatar/ad516503a11cd5ca435acc9bb6523536
# imageshack's 404 page that you would be hitting quite often otherwise
^https?://imageshack\.com/lost$
# A loop on khaleejtimes.com
^https?://www\.khaleejtimes\.com/.+/kt_.+/kt_
^https?://www\.khaleejtimes\.com/.+/images/.+/images/
^https?://www\.khaleejtimes\.com/.+/imgactv/.+/imgactv/
# More loops
^https?://photobucket\.com/.+/albums/.+/albums/
^https?://([^/]+\.)?gdcvault\.com(/.*/|/)(fonts(/.*/|/)fonts/|css(/.*/|/)css/|img(/.*/|/)img/)
^https?://static\.licdn\.com/sc/p/com\.linkedin\.nux(:|%3A)nux-static-content(\+|%2B)[\d\.]+/f/
^https?://static\.licdn\.com/sc/p/.+/f//
^https?://tm\.uol\.com\.br/h/.+/h/
^https?://((s-)?static\.ak\.fbcdn\.net|(connect\.|www\.)?facebook\.com)/connect\.php/js/.*rsrc\.php
^https?://web\.archive\.org/web/[^/]+/https?\:/[^/]+\.addthis\.com/.+/static/.+/static/
^https?://[^/]+\.libsyn\.com/.+/%2[02]https?:/
^https?://www\.infomous\.com/cloud_widget/lib/lib/
# This specifically catches only *invalid* flickr.com links extracted by wpull
^https?://www\.flickr\.com/(explore/|photos/[^/]+/(sets/\d+/(page\d+/)?)?)\d+_[a-f0-9]+(_[a-z])?\.jpg$
# Avoid grabbing thousands of these; they page-requisite each other
^https?://media\.opb\.org/clips/embed/.+\.js$
# Per-post and per-comment Atom feeds
^https?://www\.blogger\.com/feeds/\d+/posts/default/\d+
^https?://www\.blogger\.com/feeds/\d+/\d+/comments/default/\d+
# Bogus /disqus.com path
^https?://.+/.+/disqus\.com/forums/$
# Bogus literal "/page/%d/" URLs (not filled with a number)
^https?://{any_start_netloc}(/.*|/)page/%d/$
# Bogus URLs on tumblr blogs
^https?://{any_start_netloc}/.*(\?|%5Cx26)route=(/page/:page|/archive/:year/:month|/tagged/:tag|/post/:id|/image/:post_id)
^https?://{any_start_netloc}/.*%5Cx26route=/archive
# There are too many avatars on tumblr.com
^https?://\d+\.media\.tumblr\.com/avatar_.+_16\.pn[gj]$
^https?://www\.livejournal\.com/(tools/memadd|update|(identity/)?login)\.bml\?
^https?://[^\.]+\.livejournal\.com/.+/\*sup_ru/ru/UTF-8/
^https?://[^\.]+\.livejournal\.com/.+http://[^\.]+\.livejournal\.com/
^https?://www\.dreamwidth\.org/tools/(memadd|tellafriend)\?
^https?://r-login\.wordpress\.com/remote-login\.php
^https?://{any_start_netloc}/(wp-admin/|wp-login\.php\?)
^https?://[^/]+\.facebook\.com/login\.php
# Ignore /search.*updated-(min|max)= blogspot pagination because all posts are
# crawled anyway via the _archive.html pages. Need to ignore on all domains
# because blogspot also runs on non-blogspot.com domains.
^https?://{any_start_netloc}/search(/label/[^\?]+|\?q=[^&]+|)[\?&]updated-(min|max)=\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d.*&max-results=\d+
# Ignore bogus /CSI/ links on blogspot.com
^https?://.+\.blogspot\.(com|in|com\.au|co\.uk|jp|co\.nz|ca|de|it|fr|se|sg|es|pt|com\.br|ar|mx|kr)/(\d{4}/\d{2}/|search/label/)(CSI/$|.*/CSI/CSI/CSI/)
# Links to ?share=(twitter|facebook|reddit|email|google-plus-1) etc.
# These typically redirect.
^https?://{any_start_netloc}/.+[\?&]share=[a-z]{4,}
# Per-comment links
^https?://{any_start_netloc}/.+[\?&]mode=reply
^https?://{any_start_netloc}/.+[\?&](replyto(com)?|like_comment)=\d+
^https?://{any_start_netloc}/.+\?showComment(=|%5C)\d+
^https?://{any_start_netloc}/.+/quote-comment-\d+/$
^https?://{any_start_netloc}/.+/jetpack-comment/\?blogid=\d+&postid=\d+