We are currently experiencing payment processing issues. Our team is working to resolve the problem as quickly as possible. Thank you for your patience
Python script to download from Fakku!
0
The script seems to have stopped working again, ever since the site changed to default https. Using https://www.fakku.net/doujinshi/deco-english as an example, I get this unknown url error:
Save: https://www.fakku.net/doujinshi/deco-english
Here: Kikkaya - Deco - The iDOLM@STER
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python34\lib\tkinter\__init__.py", line 1482, in __call__
return self.func(*args)
File "fakku.py", line 229, in dl
dl(self.url.get(), self.v.get(), self.name.get())
File "fakku.py", line 136, in dl
os.path.join(dir, imgname.format(i)))
File "fakku.py", line 49, in save
requ = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0'})
File "C:\Python34\lib\urllib\request.py", line 258, in __init__
self.full_url = url
File "C:\Python34\lib\urllib\request.py", line 284, in full_url
self._parse()
File "C:\Python34\lib\urllib\request.py", line 313, in _parse
raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: '//t.fakku.net/images/manga/d/%5BKikkaya%5D_The_iDOLM%40STER_-_Deco/images/001.jpg'
Any idea how to fix?
Save: https://www.fakku.net/doujinshi/deco-english
Here: Kikkaya - Deco - The iDOLM@STER
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python34\lib\tkinter\__init__.py", line 1482, in __call__
return self.func(*args)
File "fakku.py", line 229, in dl
dl(self.url.get(), self.v.get(), self.name.get())
File "fakku.py", line 136, in dl
os.path.join(dir, imgname.format(i)))
File "fakku.py", line 49, in save
requ = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0'})
File "C:\Python34\lib\urllib\request.py", line 258, in __init__
self.full_url = url
File "C:\Python34\lib\urllib\request.py", line 284, in full_url
self._parse()
File "C:\Python34\lib\urllib\request.py", line 313, in _parse
raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: '//t.fakku.net/images/manga/d/%5BKikkaya%5D_The_iDOLM%40STER_-_Deco/images/001.jpg'
Any idea how to fix?
0
headofvecna wrote...
The script seems to have stopped working again, ever since the site changed to default https. Using https://www.fakku.net/doujinshi/deco-english as an example, I get this unknown url error:...
Any idea how to fix?
Ok, here it is.
I attempted to combine the grabber and downloader into one, so... There may still be some bugs. Please report them, I'll try to fix them.
0
https://www.fakku.net/manga/mimic-hoshokusha-english - Not available
['content_comments', 'content_name', 'content_poster', 'content_tags', 'content_
pages', 'content_date', 'content_url', 'content_artists', 'content_favorites', '
content_poster_url', 'content_category', 'content_description', 'content_languag
e', 'content_images', 'content_filesize', 'content_translators', 'content_series
']
https://www.fakku.net/manga/sultry-days-english
Traceback (most recent call last):
File "fakku.py", line 859, in
info = get_info(url)
File "fakku.py", line 560, in get_info
info['title'] = tit
UnboundLocalError: local variable 'tit' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fakku.py", line 506, in get_info
info['imgs'] = (request(img_url[0]), request(img_url[1]))
File "fakku.py", line 311, in request
requ = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0'})
File "C:\Python32\lib\urllib\request.py", line 194, in __init__
self._parse()
File "C:\Python32\lib\urllib\request.py", line 199, in _parse
raise ValueError("unknown url type: %s" % self.full_url)
ValueError: unknown url type: //t.fakku.net/images/manga/s/%5BMoketa%5D_Original
_Work_-_Sultry_Days/thumbs/001.thumb.jpg
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fakku.py", line 897, in
info = get_info(i, fakku_api=True)
File "fakku.py", line 508, in get_info
info['imgs'] = (request('https:'+img_url[0]), request('https:'+img_url[1]))
File "fakku.py", line 313, in request
data = conn.read()
File "C:\Python32\lib\http\client.py", line 496, in read
s = self._safe_read(self.length)
File "C:\Python32\lib\http\client.py", line 590, in _safe_read
chunk = self.fp.read(min(amt, MAXAMOUNT))
File "C:\Python32\lib\socket.py", line 276, in readinto
return self._sock.recv_into(b)
File "C:\Python32\lib\ssl.py", line 399, in recv_into
return self.read(nbytes, buffer)
File "C:\Python32\lib\ssl.py", line 293, in read
v = self._sslobj.read(len, buffer)
-----------------------------
This is what I get when I try to run "python fakku.py -g" with Python 3.2.3. It hangs until I press ctrl+c and then it displays the above. It never starts the GUI.
['content_comments', 'content_name', 'content_poster', 'content_tags', 'content_
pages', 'content_date', 'content_url', 'content_artists', 'content_favorites', '
content_poster_url', 'content_category', 'content_description', 'content_languag
e', 'content_images', 'content_filesize', 'content_translators', 'content_series
']
https://www.fakku.net/manga/sultry-days-english
Traceback (most recent call last):
File "fakku.py", line 859, in
info = get_info(url)
File "fakku.py", line 560, in get_info
info['title'] = tit
UnboundLocalError: local variable 'tit' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fakku.py", line 506, in get_info
info['imgs'] = (request(img_url[0]), request(img_url[1]))
File "fakku.py", line 311, in request
requ = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0'})
File "C:\Python32\lib\urllib\request.py", line 194, in __init__
self._parse()
File "C:\Python32\lib\urllib\request.py", line 199, in _parse
raise ValueError("unknown url type: %s" % self.full_url)
ValueError: unknown url type: //t.fakku.net/images/manga/s/%5BMoketa%5D_Original
_Work_-_Sultry_Days/thumbs/001.thumb.jpg
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fakku.py", line 897, in
info = get_info(i, fakku_api=True)
File "fakku.py", line 508, in get_info
info['imgs'] = (request('https:'+img_url[0]), request('https:'+img_url[1]))
File "fakku.py", line 313, in request
data = conn.read()
File "C:\Python32\lib\http\client.py", line 496, in read
s = self._safe_read(self.length)
File "C:\Python32\lib\http\client.py", line 590, in _safe_read
chunk = self.fp.read(min(amt, MAXAMOUNT))
File "C:\Python32\lib\socket.py", line 276, in readinto
return self._sock.recv_into(b)
File "C:\Python32\lib\ssl.py", line 399, in recv_into
return self.read(nbytes, buffer)
File "C:\Python32\lib\ssl.py", line 293, in read
v = self._sslobj.read(len, buffer)
-----------------------------
This is what I get when I try to run "python fakku.py -g" with Python 3.2.3. It hangs until I press ctrl+c and then it displays the above. It never starts the GUI.
0
Night Echo wrote...
This is what I get when I try to run "python fakku.py -g" with Python 3.2.3. It hangs until I press ctrl+c and then it displays the above. It never starts the GUI.Ok so there were errors, a lot. Probably still a bunch remaining.I wasn't able to get the same error as you. But try re-downloading the script. Secondly run with -v, it should give you a better output of what's happening(at least you'll know if the script is really frozen or just slowly working). Also by default the -p argument is set to 0, meaning that it will keep going on and on until it finds a page that was completely checked(as stated in a file called .oldlist). On a side note, I have not finished the master-gui option so don't expect -G do do anything(-g should work).
Well to sum it up download the "fixed" version and try running
python fakku.py -g -v -p 1
or just
python fakku.py -gvp 1
0
Okay, so I tried just "python fakku.py -gv", without specifying the argument for -p. It ended after 11 pages for each, although the Pururin portion encountered an error. Not sure what your intended behavior was when leaving the page argument to default. It also appears that oldlist was not updated after this, although I'm sure that was because of the error.
Page: 11: http://pururin.com/browse/0/110/11.html
Testing: http://pururin.com/gallery/16542/kahanshin-no-otsukiai.html
Appended!
Testing: http://pururin.com/gallery/16541/stance-of-the-wife.html
Appended!
Testing: http://pururin.com/gallery/16540/chindere.html
Appended!
Testing: http://pururin.com/gallery/16536/bright-yellow-blend-2.html
Appended!
Testing: http://pururin.com/gallery/16537/mikan-to-osoroi-ga-iidesu.html
Appended!
Testing: http://pururin.com/gallery/16539/puretty-cures.html
Appended!
Testing: http://pururin.com/gallery/16535/teizoku.html
http://pururin.com/gallery/16535/teizoku.html
Traceback (most recent call last):
File "fakku.py", line 899, in
info = get_info(url)
File "fakku.py", line 563, in get_info
info['title'] = tit
UnboundLocalError: local variable 'tit' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fakku.py", line 978, in
info = get_info(link)
File "fakku.py", line 492, in get_info
links.append(get_image(get_html(domain + i)))
File "fakku.py", line 345, in get_html
return request(url).decode('UTF-8').replace(
File "fakku.py", line 313, in request
conn = urllib.request.urlopen(requ, None, args.timeout)
File "C:\Python32\lib\urllib\request.py", line 138, in urlopen
return opener.open(url, data, timeout)
File "C:\Python32\lib\urllib\request.py", line 375, in open
response = meth(req, response)
File "C:\Python32\lib\urllib\request.py", line 487, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python32\lib\urllib\request.py", line 413, in error
return self._call_chain(*args)
File "C:\Python32\lib\urllib\request.py", line 347, in _call_chain
result = func(*args)
File "C:\Python32\lib\urllib\request.py", line 495, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 520: Origin Error
----------------------
When I ran "python fakku.py -gvp 1", it presumably grabbed the the first page of manga. The first time I ran it, the grabber said it found 60 manga. The second time I ran it, it found 49. When I proceeded to cancel through all the grabbed manga, the downloads started automatically. Same thing if I simply exited the GUI popup. There doesn't appear to be anything like the downloader in previous versions, where I could enter a manga URL, give the desired folder name to be created, and download it. It also seems to be only able to download the manga it has grabbed in that session.
I guess I'm kind of confused as to your intents with combining the grabber and downloader in one.
Page: 11: http://pururin.com/browse/0/110/11.html
Testing: http://pururin.com/gallery/16542/kahanshin-no-otsukiai.html
Appended!
Testing: http://pururin.com/gallery/16541/stance-of-the-wife.html
Appended!
Testing: http://pururin.com/gallery/16540/chindere.html
Appended!
Testing: http://pururin.com/gallery/16536/bright-yellow-blend-2.html
Appended!
Testing: http://pururin.com/gallery/16537/mikan-to-osoroi-ga-iidesu.html
Appended!
Testing: http://pururin.com/gallery/16539/puretty-cures.html
Appended!
Testing: http://pururin.com/gallery/16535/teizoku.html
http://pururin.com/gallery/16535/teizoku.html
Traceback (most recent call last):
File "fakku.py", line 899, in
info = get_info(url)
File "fakku.py", line 563, in get_info
info['title'] = tit
UnboundLocalError: local variable 'tit' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "fakku.py", line 978, in
info = get_info(link)
File "fakku.py", line 492, in get_info
links.append(get_image(get_html(domain + i)))
File "fakku.py", line 345, in get_html
return request(url).decode('UTF-8').replace(
File "fakku.py", line 313, in request
conn = urllib.request.urlopen(requ, None, args.timeout)
File "C:\Python32\lib\urllib\request.py", line 138, in urlopen
return opener.open(url, data, timeout)
File "C:\Python32\lib\urllib\request.py", line 375, in open
response = meth(req, response)
File "C:\Python32\lib\urllib\request.py", line 487, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python32\lib\urllib\request.py", line 413, in error
return self._call_chain(*args)
File "C:\Python32\lib\urllib\request.py", line 347, in _call_chain
result = func(*args)
File "C:\Python32\lib\urllib\request.py", line 495, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 520: Origin Error
----------------------
When I ran "python fakku.py -gvp 1", it presumably grabbed the the first page of manga. The first time I ran it, the grabber said it found 60 manga. The second time I ran it, it found 49. When I proceeded to cancel through all the grabbed manga, the downloads started automatically. Same thing if I simply exited the GUI popup. There doesn't appear to be anything like the downloader in previous versions, where I could enter a manga URL, give the desired folder name to be created, and download it. It also seems to be only able to download the manga it has grabbed in that session.
I guess I'm kind of confused as to your intents with combining the grabber and downloader in one.
0
Night Echo wrote...
Okay, so I tried just "python fakku.py -gv", without specifying the argument for -p. It ended after 11 pages for each, although the Pururin portion encountered an error. Not sure what your intended behavior was when leaving the page argument to default.The intended behavior for the default assumed that there was a .oldlist file, and would get everything that was uploaded since the last time the script was run.
Night Echo wrote...
It also appears that oldlist was not updated after this, although I'm sure that was because of the error.Because of the -g option oldlist should get updated when you hit one of the Ok/Open/Cancel buttons.
Night Echo wrote...
When I ran "python fakku.py -gvp 1", it presumably grabbed the the first page of manga. The first time I ran it, the grabber said it found 60 manga. The second time I ran it, it found 49. When I proceeded to cancel through all the grabbed manga, the downloads started automatically. Same thing if I simply exited the GUI popup.When combining the scripts I thought about this and decide to add the options -N/--no-grabber and -D/--no-downloader. When using -D you will also need to specify a file to save the links to using the -s/--save-to option.
Night Echo wrote...
There doesn't appear to be anything like the downloader in previous versions, where I could enter a manga URL, give the desired folder name to be created, and download it. It also seems to be only able to download the manga it has grabbed in that session.Yea, when I merged them scripts I though "wouldn't it be nice if I could just specify a bunch of titles at once?". So rather than taking a URL and optionally a name it takes multiple URLs. I was going to add the feature, but forgot(added now - you should see it when running -g)
Night Echo wrote...
I guess I'm kind of confused as to your intents with combining the grabber and downloader in one.Just thought it would be easier to use - I guess not, or maybe it's just the bugs.
READ THIS:
On a side note the -n option which in downloader was name and in grabber was no works the same way as it did in grabber; so if you don't want a specific tag(s) just do
python fakku.py ... -n tag1 (tag2 ...)
P.S. pururin also counts as a tag, so if you don't want results from there(or if it causes problems) just do
python fakku.py -n pururin
Wow that was long.
0
Andi i found an error at line 733 when i try to run it
it's says that
else:
      ^
SyntaxError: invalid syntax
i've try to debug it but it seems i need more skill at python
ty for your great job
it's says that
else:
      ^
SyntaxError: invalid syntax
i've try to debug it but it seems i need more skill at python
ty for your great job
0
maximalz wrote...
Andi i found an error at line 733 when i try to run itit's says that
else:
      ^
SyntaxError: invalid syntax
i've try to debug it but it seems i need more skill at python
ty for your great job
I don't even know what to say. I feel ashamed, There was no closing parenthesis on line 731. It's fixed now. Sorry about that.
0
Andy29485 wrote...
maximalz wrote...
Andi i found an error at line 733 when i try to run itit's says that
else:
      ^
SyntaxError: invalid syntax
i've try to debug it but it seems i need more skill at python
ty for your great job
I don't even know what to say. I feel ashamed, There was no closing parenthesis on line 731. It's fixed now. Sorry about that.
Ah so that was it. I should have known it too. Haha. Ty btw.
0
I created a scraper for fakku english manga and english doujinshi links. I could post the source if you want, but it was made in vb.
0
vmiragev wrote...
I created a scraper for fakku english manga and english doujinshi links. I could post the source if you want, but it was made in vb.Post it. But I don't know vb. And I use linux, not windows(I have heard of mono). So I probably will not use it. But I'm sure someone will find it usefull, so post it. :)
0
Now with Fakku Subscriptions it would be nice to have an auth so you can download manga you have access to.
I've add those lines but it doesn't really work.
I've also tried to put authentication on headers but couldn't really get it right.
Any help would be appreciated, thanks in advance!
I've add those lines but it doesn't really work.
auth_handler = urllib.request.HTTPBasicAuthHandler()
auth_handler.add_password(realm=None,
uri='https://www.fakku.net',
user='',
passwd='')
opener = urllib.request.build_opener(auth_handler)
urllib.request.install_opener(opener)
auth_handler.add_password(realm=None,
uri='https://www.fakku.net',
user='',
passwd='')
opener = urllib.request.build_opener(auth_handler)
urllib.request.install_opener(opener)
I've also tried to put authentication on headers but couldn't really get it right.
Any help would be appreciated, thanks in advance!
0
waterflame
FAKKUDL.NET
Trying using UA "EVA 02 Asuka"
Now for a little less of a joke answer.. I'm not going to give away exactly how to do it because this way is more fun :p First of you login in from /login so I'd suggest starting there... Maybe look what happens between login and redirection back to the home screen : 3 Of course don't forget to use UA "EVA 02 Asuka" (or EVA 00 :p) and happy hunting :3 ! It was quite fun to put to gather a script for a bot to login in :p!
Now for a little less of a joke answer.. I'm not going to give away exactly how to do it because this way is more fun :p First of you login in from /login so I'd suggest starting there... Maybe look what happens between login and redirection back to the home screen : 3 Of course don't forget to use UA "EVA 02 Asuka" (or EVA 00 :p) and happy hunting :3 ! It was quite fun to put to gather a script for a bot to login in :p!
0
I wrote a Favorites Downloader script loosely based off the script from this thread, you can read about it over here if you interested: https://www.fakku.net/forums/fakku-developers/fakku-favorites-downloader#4536061
I fixed a few issues with the parts I borrowed and moved some stuff from scraping the HTML to suing newer API calls so those things should be more stable. Feel free to take a look and take any code you need from it. ^_^
I fixed a few issues with the parts I borrowed and moved some stuff from scraping the HTML to suing newer API calls so those things should be more stable. Feel free to take a look and take any code you need from it. ^_^
0
Quick question, I have been trying to get this to work on OSX with Python 3 but it immediately gives me this:
python fakku.py -g
fakku.py:174: Warning: 'with' will become a reserved keyword in Python 2.6
File "fakku.py", line 174
with open(pid_file, 'r') as f:
^
SyntaxError: invalid syntax
or
python fakku.py https://www.fakku.net/manga/absolute-authority-sisters-ch01-03-english
fakku.py:174: Warning: 'with' will become a reserved keyword in Python 2.6
File "fakku.py", line 174
with open(pid_file, 'r') as f:
^
SyntaxError: invalid syntax
Anyone know whats going on?
python fakku.py -g
fakku.py:174: Warning: 'with' will become a reserved keyword in Python 2.6
File "fakku.py", line 174
with open(pid_file, 'r') as f:
^
SyntaxError: invalid syntax
or
python fakku.py https://www.fakku.net/manga/absolute-authority-sisters-ch01-03-english
fakku.py:174: Warning: 'with' will become a reserved keyword in Python 2.6
File "fakku.py", line 174
with open(pid_file, 'r') as f:
^
SyntaxError: invalid syntax
Anyone know whats going on?