Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reactor.cc error #148

Closed
wankio opened this issue Jan 3, 2019 · 4 comments
Closed

reactor.cc error #148

wankio opened this issue Jan 3, 2019 · 4 comments

Comments

@wankio
Copy link
Contributor

wankio commented Jan 3, 2019

sorry for late reply, last topic closed so i just create new topic

1- i think only nsfw pornreactor supported multiple tags search
eg : http://pornreactor.cc/search/muscle+aka6
2- error when downloading

rllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/6 HTTP/1.1" 302 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/221 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/220 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/219 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/218 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/217 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/216 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/215 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/214 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/213 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/212 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/211 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/210 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/209 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/208 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/207 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/206 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/205 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/204 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/203 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/202 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/201 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/200 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/199 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/198 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/197 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/196 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/195 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/194 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/193 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/192 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/191 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/190 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/189 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/188 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/187 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/186 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/185 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/184 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/183 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/182 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/181 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/180 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/179 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/178 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/177 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/176 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/175 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/174 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/173 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/172 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/171 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/170 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/169 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/168 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/167 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/166 HTTP/1.1" 200 None
urllib3.connectionpool: http://pornreactor.cc:80 "GET /tag/Dota/165 HTTP/1.1" 200 None
pornreactor: An unexpected error occurred: JSONDecodeError - Invalid control character at: line 1 column 1234 (char 1233). Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
pornreactor:
Traceback (most recent call last):
File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\extractor\joyreactor.py", line 72, in parse_post
data = json.loads(script)
File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\json_init
.py", line 348, in loads
return _default_decoder.decode(s)
File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid control character at: line 30 column 22 (char 1287)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\job.py", line 51, in run
for msg in self.extractor:
File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\extractor\joyreactor.py", line 37, in items
for image in self._parse_post(post):
File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\site-packages\gallery_dl\extractor\joyreactor.py", line 77, in parse_post
.replace("\r", ""))
File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\json_init
.py", line 348, in loads
return _default_decoder.decode(s)
File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "c:\users\gen32uc\appdata\local\programs\python\python37\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Invalid control character at: line 1 column 1234 (char 1233)

mikf added a commit that referenced this issue Jan 3, 2019
- remove all ASCII escape codes, not just \n and \r
- ignore faulty posts instead of letting the exception propagate
@mikf
Copy link
Owner

mikf commented Jan 3, 2019

  1. multi tag searches are now supported (a36f52a).
    I only looked at the results of http://joyreactor.com/search/... when writing the first extractors and, as noted in the other issue, it only returns tag suggestions as results - no posts. I therefore never really looked at the search results on all the other domains until today ...

  2. The JSON data of a post sometimes contains invalid characters (*) and I already had some code in place that was supposed to fix that, but apparently that wasn't enough. With 8753627 I improved upon that and posts that are still unable to be parsed are now just ignored instead of "crashing" the whole program.

There seams to be another issue with paginating over the search results of http://joyreactor.cc/search/..., but my computer appears to be currently blocked from accessing any of the ...reactor sites, so that will have to wait.

(*) when visiting the same post several times, the issue usually "fixes" itself, which makes testing not so easy

@wankio
Copy link
Contributor Author

wankio commented Jan 4, 2019

reactor domain seem like have ddos protection like sankakucomplex, when u run it too fast it will prevent you from access it in xx minutes. maybe set delay between each request can fix this problem

@wankio
Copy link
Contributor Author

wankio commented Jan 6, 2019

and it have subdomain eg : http://dota.reactor.cc/tag/Dota+Art it would be nice if it support *.reactor.cc too because i think it have many subdomain

mikf added a commit that referenced this issue Jan 7, 2019
- support *.reactor.cc domains
- combine joyreactor and pornreactor modules
@mikf
Copy link
Owner

mikf commented Jan 9, 2019

Subdomains are now supported, there are wait-min and wait-max options to wait between HTTP requests, and another minor issue has been fixed (1734a6c). I hope that covers everything.

@mikf mikf closed this as completed Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants