generated from Mdevpro78/mkdocforge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv-example
More file actions
188 lines (136 loc) · 5.55 KB
/
env-example
File metadata and controls
188 lines (136 loc) · 5.55 KB
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
APP_VERSION=0.1.0
# Force Python to use UTF-8 encoding for string handling
PYTHONUTF8=1
# Set the default encoding for input/output operations to UTF-8
PYTHONIOENCODING=utf-8
# ==============================================================================
# SCRAPY CONFIGURATION
# ==============================================================================
# This .env file contains all Scrapy settings that are simple scalar values
# ==============================================================================
ENVIRONMENT=development
# ============================================================================
# APPLICATION SETTINGS
# ============================================================================
OCW_BOT_NAME=sharif_ocw_downloader
OCW_BASE_URL=https://ocw.sharif.ir
OCW_CONTENT_BASE_URL=http://ocw.sharif.edu
OCW_COURSE_URL=${OCW_BASE_URL}/api/v1/ocw/course/get
OCW_CHAPTER_URL=${OCW_BASE_URL}/api/v1/ocw/sessions
OCW_API_TIMEOUT=180.0
OCW_OUTPUT_PATH=/tmp/ocw_downloads
OCW_USE_ORDINALS=true
OCW_OVERWRITE_EXISTING=false
OCW_MAX_FILENAME_LENGTH=200
OCW_RETRY_HTTP_CODES=500,502,503,504,408,429
OCW_STATS_ENABLED=true
OCW_PROGRESS_ENABLED=true
# ==============================================================================
# CORE SETTINGS
# ==============================================================================
# ==============================================================================
# CONCURRENT REQUEST SETTINGS
# ==============================================================================
# The maximum number of concurrent requests performed by Scrapy
CONCURRENT_REQUESTS=16
# Concurrent requests per domain
CONCURRENT_REQUESTS_PER_DOMAIN=8
# Concurrent requests per IP
CONCURRENT_REQUESTS_PER_IP=0
# Concurrent items to process
CONCURRENT_ITEMS=3
# ==============================================================================
# DOWNLOAD SETTINGS
# ==============================================================================
# Download delay in seconds
DOWNLOAD_DELAY=0
# Download timeout in seconds
DOWNLOAD_TIMEOUT=180
# Maximum download size in bytes (10737418240 = 10GB)
DOWNLOAD_MAXSIZE=10737418240
# Warning size in bytes (1073741824 = 1GB)
DOWNLOAD_WARNSIZE=1073741824
# Fail on broken responses
DOWNLOAD_FAIL_ON_DATALOSS=true
# Randomize download delay
RANDOMIZE_DOWNLOAD_DELAY=true
# ==============================================================================
# SPIDER SETTINGS
# ==============================================================================
# Warn only on spider loader errors
SPIDER_LOADER_WARN_ONLY=false
# ==============================================================================
# MEMORY SETTINGS
# ==============================================================================
# Memory usage enable
MEMUSAGE_ENABLED=true
# Memory usage limit in MB (0 = no limit)
MEMUSAGE_LIMIT_MB=0
# Memory usage check interval in seconds
MEMUSAGE_CHECK_INTERVAL_SECONDS=60.0
# Memory usage warning in MB
MEMUSAGE_WARNING_MB=0
# ==============================================================================
# RETRY SETTINGS
# ==============================================================================
# Enable retry middleware
RETRY_ENABLED=true
# Number of retry times
RETRY_TIMES=3
# ==============================================================================
# STATS SETTINGS
# ==============================================================================
# Stats dump
STATS_DUMP=true
# ==============================================================================
# TELNET CONSOLE SETTINGS
# ==============================================================================
# Enable telnet console
TELNETCONSOLE_ENABLED=false
# ==============================================================================
# ROBOTSTXT SETTINGS
# ==============================================================================
# Obey robots.txt
ROBOTSTXT_OBEY=false
# Robots.txt user agent
ROBOTSTXT_USER_AGENT=
# ==============================================================================
# COOKIES SETTINGS
# ==============================================================================
# Enable cookies middleware
COOKIES_ENABLED=true
# Debug cookies
COOKIES_DEBUG=false
# ==============================================================================
# REDIRECT SETTINGS
# ==============================================================================
# Enable redirect middleware
REDIRECT_ENABLED=true
# ==============================================================================
# AUTOTHROTTLE SETTINGS
# ==============================================================================
# Enable autothrottle
AUTOTHROTTLE_ENABLED=false
# Autothrottle start delay
AUTOTHROTTLE_START_DELAY=5.0
# ==============================================================================
# REQUEST FINGERPRINTER SETTINGS
# ==============================================================================
# Request fingerprinter implementation version
REQUEST_FINGERPRINTER_IMPLEMENTATION=2.7
# ==============================================================================
# SCHEDULER SETTINGS
# ==============================================================================
# Scheduler debug
SCHEDULER_DEBUG=false
# ==============================================================================
# LOGGING SETTINGS
# ==============================================================================
# Enable logging
LOG_ENABLED=true
# Log encoding
LOG_ENCODING=utf-8
# Log level (CRITICAL, ERROR, WARNING, INFO, DEBUG)
LOG_LEVEL=DEBUG
# Log to stdout
LOG_STDOUT=true