Send an over18=1 cookie to reddit.com to avoid the age gate on many subreddits
This commit is contained in:
parent
6a647f637e
commit
86e92d684c
@ -1 +1 @@
|
||||
__version__ = '0.9.3'
|
||||
__version__ = '0.9.4'
|
||||
|
4
libgrabsite/default_cookies.txt
Normal file
4
libgrabsite/default_cookies.txt
Normal file
@ -0,0 +1,4 @@
|
||||
# HTTP cookie file.
|
||||
|
||||
# Needed to avoid the age gate on many subreddits.
|
||||
.reddit.com TRUE / FALSE 2147483647 over18 1
|
@ -231,7 +231,9 @@ sitemaps, dupespotter, warc_max_size, ua, input_file, wpull_args, start_url):
|
||||
"--level", level,
|
||||
"--page-requisites-level", page_requisites_level,
|
||||
"--span-hosts-allow", span_hosts_allow,
|
||||
"--load-cookies", "{}/default_cookies.txt".format(LIBGRABSITE)
|
||||
]
|
||||
|
||||
# psutil is not available on Windows and therefore wpull's --monitor-*
|
||||
# options are also not available.
|
||||
if os.name != "nt" and sys.platform != "cygwin":
|
||||
|
Loading…
x
Reference in New Issue
Block a user