SinclairSchneider commited on
Commit
d9ea4f4
·
verified ·
1 Parent(s): 2a9a718

Add detailed dataset card and the scraping pipeline used to build it

Browse files
README.md CHANGED
@@ -19,7 +19,9 @@ tags:
19
  - news
20
  - news-articles
21
  - political-extremism-research
 
22
  - right-wing
 
23
  - web-scraping
24
  annotations_creators:
25
  - no-annotation
@@ -65,8 +67,17 @@ a set of comparable corpora covering the German media landscape from public-serv
65
  broadcasters to alternative and fringe outlets, all built with the same crawler and the same
66
  extraction pipeline so that they can be compared and combined directly.
67
 
68
- > ⚠️ **Research material.** The articles are reproduced verbatim from the publisher's website.
69
- > Their content expresses the views of that publisher, not of the dataset author.
 
 
 
 
 
 
 
 
 
70
 
71
  ## At a glance
72
 
@@ -79,6 +90,7 @@ extraction pipeline so that they can be compared and combined directly.
79
  | **Split** | `train` (single split) |
80
  | **Format** | Parquet, 1 shard, ≈ 31 MB download / 49 MB in memory |
81
  | **Perceived partisanship** | 6.0 / 7 → *right of centre* ([medienkompass.org](https://medienkompass.org/deutsche-medienlandschaft/) reader survey) |
 
82
  | **Mirror** | [`NLP-UniBW/compact_de`](https://huggingface.co/datasets/NLP-UniBW/compact_de) |
83
 
84
  ```python
@@ -409,13 +421,44 @@ corpus = concatenate_datasets(parts)
409
 
410
  ## Licensing and intended use
411
 
412
- The crawling and extraction code in `scraping/` is released for reuse. The **article texts remain
413
- the copyright of COMPACT / its publisher**; they are reproduced here for non-commercial
414
- research purposes such as text mining, media-bias research, discourse analysis and language-model
415
- evaluation. If you intend to use the texts in another setting — redistribution, commercial use,
416
- or publication of substantial verbatim excerpts — check German copyright law (in particular
417
- § 60d UrhG on text and data mining for research) and the publisher's terms of use. If you are a
418
- rights holder and want content removed, please open a discussion on this repository.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
419
 
420
  ## Citation
421
 
 
19
  - news
20
  - news-articles
21
  - political-extremism-research
22
+ - research-only
23
  - right-wing
24
+ - text-and-data-mining
25
  - web-scraping
26
  annotations_creators:
27
  - no-annotation
 
67
  broadcasters to alternative and fringe outlets, all built with the same crawler and the same
68
  extraction pipeline so that they can be compared and combined directly.
69
 
70
+ > ## ⚠️ For scientific research only
71
+ >
72
+ > This corpus is published **exclusively for scientific research** under the German
73
+ > research exception for text and data mining — the *Forschungsprivileg* of
74
+ > **§ 60d UrhG** (implementing Art. 3 of EU Directive 2019/790). The article texts remain
75
+ > the copyright of their publisher and are **not** licensed for commercial use,
76
+ > redistribution, or republication. By downloading it you confirm that you use it for
77
+ > non-commercial scientific research. See [Licensing and intended use](#licensing-and-intended-use).
78
+ >
79
+ > The articles are reproduced verbatim from the publisher's website; their content expresses
80
+ > the views of that publisher, not of the dataset author.
81
 
82
  ## At a glance
83
 
 
90
  | **Split** | `train` (single split) |
91
  | **Format** | Parquet, 1 shard, ≈ 31 MB download / 49 MB in memory |
92
  | **Perceived partisanship** | 6.0 / 7 → *right of centre* ([medienkompass.org](https://medienkompass.org/deutsche-medienlandschaft/) reader survey) |
93
+ | **Intended use** | Scientific research only (*Forschungsprivileg*, § 60d UrhG) |
94
  | **Mirror** | [`NLP-UniBW/compact_de`](https://huggingface.co/datasets/NLP-UniBW/compact_de) |
95
 
96
  ```python
 
421
 
422
  ## Licensing and intended use
423
 
424
+ ### Scientific research only — *Forschungsprivileg* (§ 60d UrhG)
425
+
426
+ This dataset is made available **solely for the purpose of scientific research**. The legal basis
427
+ is the German text-and-data-mining exception for research, the so-called **Forschungsprivileg**:
428
+
429
+ - **§ 60d UrhG** — *Text und Data Mining für Zwecke der wissenschaftlichen Forschung* — allows
430
+ research organisations to make reproductions of lawfully accessible works in order to carry out
431
+ text and data mining for **non-commercial** scientific research, and to share the resulting
432
+ corpus with a specifically limited circle of people for joint research and with individual third
433
+ parties for the purpose of quality assurance.
434
+ - It implements **Art. 3 of Directive (EU) 2019/790** (the DSM Directive); comparable research
435
+ exceptions exist in the other EU member states.
436
+ - § 60d UrhG does **not** cover commercial exploitation. Research organisations that give a
437
+ commercial enterprise preferential access are explicitly excluded from the privilege.
438
+
439
+ ### What this means for you
440
+
441
+ ✅ **Permitted** — using the corpus for non-commercial scientific research: text and data mining,
442
+ corpus linguistics, media-bias and discourse analysis, training and evaluating research models,
443
+ reproducing published findings, and quality checks by individual third parties.
444
+
445
+ ❌ **Not permitted** — commercial use or commercial model training; redistributing or republishing
446
+ the article texts; presenting the texts as your own; building products or services on the article
447
+ texts; any use that substitutes for reading the publisher's own website.
448
+
449
+ The **article texts remain the copyright of COMPACT and its publisher.** No licence to them is
450
+ granted or implied by this repository. Only the crawling and extraction code in `scraping/` is
451
+ offered for free reuse.
452
+
453
+ If your intended use falls outside the research exception, obtain permission from the rights
454
+ holder, or use only the derived, non-expressive data (statistics, embeddings, counts). Note that
455
+ § 60d UrhG also expects research corpora to be deleted once they are no longer needed for the
456
+ research purpose, with archiving permitted at trusted institutions.
457
+
458
+ If you are a rights holder and want content removed, please open a discussion on this repository.
459
+
460
+ > This section is an orientation for researchers, not legal advice. Responsibility for your own
461
+ > use of the data remains with you and your institution.
462
 
463
  ## Citation
464
 
scraping/.env.example ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ---------------------------------------------------------------------------
2
+ # crawler.py configuration for www.compact-online.de
3
+ #
4
+ # Copy this file to `.env` and uncomment the lines you need:
5
+ #
6
+ # cp .env.example .env
7
+ #
8
+ # Variables that are already set in the real environment take precedence over
9
+ # this file, so a single run can still be overridden on the command line:
10
+ #
11
+ # SCRAPER_THREADS=4 python crawler.py
12
+ #
13
+ # Everything here is optional - the defaults shown are exactly the values that
14
+ # were used for the original crawl.
15
+ # ---------------------------------------------------------------------------
16
+
17
+
18
+ # === Proxies ===============================================================
19
+
20
+ # Inline pool. Separate entries with commas, semicolons, spaces or newlines.
21
+ # A scheme is optional - "http://" is assumed when none is given. One entry is
22
+ # picked per request, so several entries spread the load over several exits.
23
+ #SCRAPER_PROXIES=proxy-a.example.com:3128,proxy-b.example.com:3128
24
+
25
+ # ... with an explicit scheme and credentials:
26
+ #SCRAPER_PROXIES=http://user:pass@proxy.example.com:3128
27
+
28
+ # ... SOCKS (requires PySocks):
29
+ #SCRAPER_PROXIES=socks5://localhost:9050
30
+
31
+ # For a whole proxy farm, keep the list in its own file instead: one proxy per
32
+ # line, blank lines and "#" comments allowed. See `proxies.example.txt`.
33
+ # This scales to thousands of entries and can be regenerated by another tool
34
+ # without ever touching this file. Both settings may be combined.
35
+ #SCRAPER_PROXY_FILE=proxies.txt
36
+
37
+ # Leave both unset to crawl over a direct connection - that is the default.
38
+
39
+
40
+ # === Crawler tuning ========================================================
41
+
42
+ # Number of worker processes sharing the URL frontier.
43
+ #SCRAPER_THREADS=32
44
+
45
+ # Socket timeout per request, in seconds.
46
+ #SCRAPER_TIMEOUT=10.0
47
+
48
+ # Attempts per URL before it is given up on.
49
+ #SCRAPER_RETRIES=10
50
+
51
+ # Seed URL the crawl starts from. Any article URL on the site works.
52
+ #SCRAPER_START_URL=https://www.compact-online.de/usa-kennedy-raeumt-auf/
scraping/README.md CHANGED
@@ -4,6 +4,8 @@
4
  |---|---|
5
  | [`crawler.py`](./crawler.py) | Distributed whole-site crawler for `www.compact-online.de`. Writes one JSON file per article to `pages/`. |
6
  | [`finalize.ipynb`](./finalize.ipynb) | Merges `pages/*.json` into a single table, deduplicates it and pushes it to the Hub. |
 
 
7
 
8
  ```bash
9
  pip install mechanicalsoup beautifulsoup4 lxml python-dateutil fake-useragent \
@@ -13,19 +15,44 @@ python crawler.py # writes pages/*.json; `touch killall.txt` to stop
13
  jupyter notebook finalize.ipynb
14
  ```
15
 
16
- ## Using your own proxies
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  The original crawl ran behind a pool of forward proxies on a private network.
19
- Those addresses have been removed from this published copy. `crawler.py` reads
20
- the `SCRAPER_PROXIES` environment variable instead — a comma-separated list of
21
- proxies, with or without a scheme (`http://` is assumed when none is given).
22
- One entry is picked per request, so a pool spreads the load over several exits.
23
 
24
  ```bash
25
  # a single proxy
26
  export SCRAPER_PROXIES="proxy-a.example.com:3128"
27
 
28
- # a pool, rotated per request
29
  export SCRAPER_PROXIES="proxy-a.example.com:3128,proxy-b.example.com:3128"
30
 
31
  # with an explicit scheme and credentials
@@ -33,13 +60,22 @@ export SCRAPER_PROXIES="http://user:pass@proxy.example.com:3128"
33
 
34
  # SOCKS, if PySocks is installed
35
  export SCRAPER_PROXIES="socks5://localhost:9050"
 
36
 
37
- # back to a direct connection (the default)
38
- unset SCRAPER_PROXIES
 
 
39
 
 
 
 
40
  python crawler.py
41
  ```
42
 
 
 
 
43
  The scripts contain no credentials, cookies or personal data.
44
 
45
  Please crawl responsibly: honour `robots.txt` and the site's terms of use, keep
 
4
  |---|---|
5
  | [`crawler.py`](./crawler.py) | Distributed whole-site crawler for `www.compact-online.de`. Writes one JSON file per article to `pages/`. |
6
  | [`finalize.ipynb`](./finalize.ipynb) | Merges `pages/*.json` into a single table, deduplicates it and pushes it to the Hub. |
7
+ | [`.env.example`](./.env.example) | Configuration template. Copy to `.env` and uncomment what you need. |
8
+ | [`proxies.example.txt`](./proxies.example.txt) | Proxy-list template for `SCRAPER_PROXY_FILE` — one proxy per line. |
9
 
10
  ```bash
11
  pip install mechanicalsoup beautifulsoup4 lxml python-dateutil fake-useragent \
 
15
  jupyter notebook finalize.ipynb
16
  ```
17
 
18
+ ## Configuration
19
+
20
+ All settings are optional and are read from the environment or from a `.env`
21
+ file next to `crawler.py`. The defaults are exactly the values used for the
22
+ original crawl.
23
+
24
+ ```bash
25
+ cp .env.example .env # then uncomment what you need
26
+ ```
27
+
28
+ | Variable | Meaning |
29
+ |---|---|
30
+ | `SCRAPER_PROXIES` | Inline proxy pool — entries separated by commas, semicolons, spaces or newlines. |
31
+ | `SCRAPER_PROXY_FILE` | Path to a file with **one proxy per line** — the practical form for a proxy farm. |
32
+ | `SCRAPER_THREADS` | Number of worker processes sharing the URL frontier. |
33
+ | `SCRAPER_TIMEOUT` | Socket timeout per request, in seconds. |
34
+ | `SCRAPER_RETRIES` | Attempts per URL before giving up. |
35
+ | `SCRAPER_START_URL` | Seed URL the crawl starts from. |
36
+
37
+ Environment variables take precedence over `.env`, so a single run can be
38
+ overridden on the command line:
39
+
40
+ ```bash
41
+ SCRAPER_THREADS=4 python crawler.py
42
+ ```
43
+
44
+ ### Proxies
45
 
46
  The original crawl ran behind a pool of forward proxies on a private network.
47
+ Those addresses have been removed from this published copy. A scheme is
48
+ optional on every entry (`http://` is assumed); one entry is picked per
49
+ request, so a pool spreads the load over several exits.
 
50
 
51
  ```bash
52
  # a single proxy
53
  export SCRAPER_PROXIES="proxy-a.example.com:3128"
54
 
55
+ # a small pool, rotated per request
56
  export SCRAPER_PROXIES="proxy-a.example.com:3128,proxy-b.example.com:3128"
57
 
58
  # with an explicit scheme and credentials
 
60
 
61
  # SOCKS, if PySocks is installed
62
  export SCRAPER_PROXIES="socks5://localhost:9050"
63
+ ```
64
 
65
+ For a **whole proxy farm**, keep the list in its own file — one proxy per line,
66
+ blank lines and `#` comments allowed — and point `SCRAPER_PROXY_FILE` at it.
67
+ The file can hold thousands of entries and be regenerated by another tool
68
+ without touching `.env` or the script:
69
 
70
+ ```bash
71
+ cp proxies.example.txt proxies.txt # then fill in your own entries
72
+ echo 'SCRAPER_PROXY_FILE=proxies.txt' >> .env
73
  python crawler.py
74
  ```
75
 
76
+ Leave both unset to crawl over a direct connection — that is the default and
77
+ what most of the crawls in this collection used.
78
+
79
  The scripts contain no credentials, cookies or personal data.
80
 
81
  Please crawl responsibly: honour `robots.txt` and the site's terms of use, keep
scraping/crawler.py CHANGED
@@ -23,9 +23,14 @@ Usage
23
  pip install mechanicalsoup beautifulsoup4 lxml python-dateutil fake-useragent
24
  python crawler.py
25
 
26
- Set ``SCRAPER_PROXIES`` (comma separated ``host:port`` list) to route requests
27
- through your own forward proxies; see the note further down. The private proxy
28
- addresses used in the original crawl have been removed from this published copy.
 
 
 
 
 
29
 
30
  Please crawl responsibly: honour robots.txt and the site's terms of use, and
31
  lower the worker count unless you have the operator's permission.
@@ -48,49 +53,81 @@ from dateutil.parser import parse
48
 
49
  base_url = "https://www.compact-online.de/"
50
 
51
- # --- Proxy configuration ---------------------------------------------------
52
- # The original crawl was executed behind a pool of forward proxies located on a
53
- # private network. Those addresses are infrastructure specific and have been
54
- # removed from this published copy of the script.
55
  #
56
- # Set the environment variable SCRAPER_PROXIES to a comma separated list of
57
- # proxies to send the crawl through your own pool. Entries may be written with
58
- # or without a scheme ("http://" is assumed when none is given). Each request
59
- # picks one entry from the pool, so several entries spread the load over
60
- # several exits. Leave the variable unset or empty to connect directly - that
61
- # is the default and what most of the crawls in this collection used.
62
  #
63
- # Examples:
64
- #
65
- # # a single proxy
66
- # export SCRAPER_PROXIES="proxy-a.example.com:3128"
67
- #
68
- # # a pool, rotated per request
69
- # export SCRAPER_PROXIES="proxy-a.example.com:3128,proxy-b.example.com:3128"
70
- #
71
- # # with an explicit scheme and credentials
72
- # export SCRAPER_PROXIES="http://user:pass@proxy.example.com:3128"
73
- #
74
- # # SOCKS also works if PySocks is installed
75
- # export SCRAPER_PROXIES="socks5://localhost:9050"
76
- #
77
- # # back to a direct connection
78
- # unset SCRAPER_PROXIES
79
- #
80
- # python crawler.py
 
 
 
 
 
 
 
81
  def _load_proxy_pool():
82
- """Read the SCRAPER_PROXIES environment variable into a list of proxy URLs."""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  pool = []
84
- for entry in os.environ.get("SCRAPER_PROXIES", "").split(","):
85
  entry = entry.strip()
86
  if not entry:
87
  continue
88
  if "://" not in entry:
89
  entry = "http://" + entry
90
- pool.append(entry)
 
91
  return pool
92
 
 
93
  PROXY_POOL = _load_proxy_pool()
 
 
 
 
94
 
95
  def log(number, url):
96
  if not os.path.isdir("log"):
@@ -250,7 +287,7 @@ def crawler(iId, iNumberOfThreads, lQueues):
250
  (not ".epub" in sPage):
251
 
252
  log(iId, sPage)
253
- for i in range(10):
254
  try:
255
  lproxies = PROXY_POOL
256
  proxy = lproxies[int((int(time.time())/1)+3)%len(lproxies)] if lproxies else None
@@ -262,7 +299,7 @@ def crawler(iId, iNumberOfThreads, lQueues):
262
 
263
  time.sleep(random.uniform(1.0, 3.5))
264
 
265
- browser.open(sPage, timeout=10.0)
266
  page = browser.get_current_page()
267
  page_str = str(page)
268
  if "#challenge-error-text" in page_str:
@@ -311,7 +348,7 @@ def main():
311
  if not os.path.isdir("pages"):
312
  os.mkdir("pages")
313
 
314
- iNumberOfThreads = 32
315
  lQueues = []
316
  mgr = multiprocessing.Manager()
317
  for i in range(iNumberOfThreads):
@@ -321,7 +358,7 @@ def main():
321
  lIds = range(0, iNumberOfThreads)
322
  lNumberOfThreads = [iNumberOfThreads] * iNumberOfThreads
323
  llQueues = [lQueues] * iNumberOfThreads
324
- addStartChannel("https://www.compact-online.de/usa-kennedy-raeumt-auf/", iNumberOfThreads, lQueues)
325
  lArguments = list(zip(lIds, lNumberOfThreads, llQueues))
326
  with multiprocessing.Pool(processes=iNumberOfThreads) as pool:
327
  pool.starmap(crawler, lArguments)
 
23
  pip install mechanicalsoup beautifulsoup4 lxml python-dateutil fake-useragent
24
  python crawler.py
25
 
26
+ Configuration
27
+ -------------
28
+ Copy ``.env.example`` to ``.env`` and uncomment what you need - proxies, worker
29
+ count, timeout, retries and the seed URL are all read from there (environment
30
+ variables still win over the file). For a large proxy farm put one proxy per
31
+ line into a text file and point ``SCRAPER_PROXY_FILE`` at it; see
32
+ ``proxies.example.txt``. The private proxy addresses used in the original crawl
33
+ have been removed from this published copy.
34
 
35
  Please crawl responsibly: honour robots.txt and the site's terms of use, and
36
  lower the worker count unless you have the operator's permission.
 
53
 
54
  base_url = "https://www.compact-online.de/"
55
 
56
+ # --- Configuration ---------------------------------------------------------
57
+ # Every setting below can be supplied through the environment or through a
58
+ # ".env" file placed next to this script. Copy ".env.example" to ".env" and
59
+ # uncomment what you need:
60
  #
61
+ # cp .env.example .env
 
 
 
 
 
62
  #
63
+ # Nothing has to be set - the defaults are exactly the values that were used
64
+ # for the original crawl.
65
+ def _load_dotenv(path=".env"):
66
+ """Read a ".env" file: KEY=VALUE per line, "#" starts a comment.
67
+
68
+ Variables that are already set in the real environment win, so a single run
69
+ can still be overridden with e.g. ``SCRAPER_THREADS=4 python crawler.py``.
70
+ """
71
+ if not os.path.isfile(path):
72
+ return
73
+ with io.open(path, "r", encoding="utf-8") as handle:
74
+ for line in handle:
75
+ line = line.strip()
76
+ if not line or line.startswith("#") or "=" not in line:
77
+ continue
78
+ key, _, value = line.partition("=")
79
+ key = key.strip()
80
+ value = value.strip().strip('"').strip("'")
81
+ if key and key not in os.environ:
82
+ os.environ[key] = value
83
+
84
+
85
+ _load_dotenv()
86
+
87
+
88
  def _load_proxy_pool():
89
+ """Build the proxy pool from SCRAPER_PROXIES and/or SCRAPER_PROXY_FILE.
90
+
91
+ SCRAPER_PROXIES inline list; entries separated by commas, semicolons,
92
+ spaces or newlines.
93
+ SCRAPER_PROXY_FILE path to a file holding one proxy per line, with blank
94
+ lines and "#" comments allowed. This is the practical
95
+ form for a whole proxy farm: the pool can be swapped or
96
+ regenerated without touching the script or the .env.
97
+
98
+ Both may be combined. Entries may be written with or without a scheme
99
+ ("http://" is assumed when none is given). Duplicates are dropped and an
100
+ empty pool simply means "connect directly".
101
+ """
102
+ raw = os.environ.get("SCRAPER_PROXIES", "")
103
+ proxy_file = os.environ.get("SCRAPER_PROXY_FILE", "").strip()
104
+ if proxy_file:
105
+ if not os.path.isfile(proxy_file):
106
+ raise SystemExit("SCRAPER_PROXY_FILE points to a missing file: " + proxy_file)
107
+ with io.open(proxy_file, "r", encoding="utf-8") as handle:
108
+ raw = raw + "\n" + handle.read()
109
+ cleaned = []
110
+ for line in raw.splitlines():
111
+ line = line.split("#", 1)[0].strip()
112
+ if line:
113
+ cleaned.append(line)
114
  pool = []
115
+ for entry in re.split(r"[,;\s]+", " ".join(cleaned)):
116
  entry = entry.strip()
117
  if not entry:
118
  continue
119
  if "://" not in entry:
120
  entry = "http://" + entry
121
+ if entry not in pool:
122
+ pool.append(entry)
123
  return pool
124
 
125
+
126
  PROXY_POOL = _load_proxy_pool()
127
+ NUM_THREADS = int(os.environ.get("SCRAPER_THREADS", "32"))
128
+ REQUEST_TIMEOUT = float(os.environ.get("SCRAPER_TIMEOUT", "10.0"))
129
+ MAX_RETRIES = int(os.environ.get("SCRAPER_RETRIES", "10"))
130
+ START_URL = os.environ.get("SCRAPER_START_URL", "https://www.compact-online.de/usa-kennedy-raeumt-auf/")
131
 
132
  def log(number, url):
133
  if not os.path.isdir("log"):
 
287
  (not ".epub" in sPage):
288
 
289
  log(iId, sPage)
290
+ for i in range(MAX_RETRIES):
291
  try:
292
  lproxies = PROXY_POOL
293
  proxy = lproxies[int((int(time.time())/1)+3)%len(lproxies)] if lproxies else None
 
299
 
300
  time.sleep(random.uniform(1.0, 3.5))
301
 
302
+ browser.open(sPage, timeout=REQUEST_TIMEOUT)
303
  page = browser.get_current_page()
304
  page_str = str(page)
305
  if "#challenge-error-text" in page_str:
 
348
  if not os.path.isdir("pages"):
349
  os.mkdir("pages")
350
 
351
+ iNumberOfThreads = NUM_THREADS
352
  lQueues = []
353
  mgr = multiprocessing.Manager()
354
  for i in range(iNumberOfThreads):
 
358
  lIds = range(0, iNumberOfThreads)
359
  lNumberOfThreads = [iNumberOfThreads] * iNumberOfThreads
360
  llQueues = [lQueues] * iNumberOfThreads
361
+ addStartChannel(START_URL, iNumberOfThreads, lQueues)
362
  lArguments = list(zip(lIds, lNumberOfThreads, llQueues))
363
  with multiprocessing.Pool(processes=iNumberOfThreads) as pool:
364
  pool.starmap(crawler, lArguments)
scraping/proxies.example.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # One proxy per line. Blank lines and "#" comments are ignored.
2
+ # A scheme is optional - "http://" is assumed when none is given.
3
+ #
4
+ # Copy this file (e.g. to `proxies.txt`), fill in your own entries and point
5
+ # SCRAPER_PROXY_FILE at it:
6
+ #
7
+ # SCRAPER_PROXY_FILE=proxies.txt
8
+ #
9
+ # This is the convenient form for a large proxy farm - the file can hold
10
+ # thousands of lines and be regenerated by another tool at any time.
11
+
12
+ proxy-a.example.com:3128
13
+ proxy-b.example.com:3128
14
+ http://user:pass@proxy-c.example.com:3128
15
+ socks5://localhost:9050