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
browsing_fakku_atm wrote...
We need a .exe of this, like an actual program to rip whole chapters if you just paste the url page of all the thumbnails of the doujin you want.To(sort of) answer your question/request for a native program of this script.
A native program such a .exe(Windows) will not work on Linux or Mac, and vice versa. On the other hand python scripts should work for any platform(provided python is installed). This makes it much easier on us developers, we don't need to worry about the script working on other peoples computers as much.
If you want to use this script but you don't have python - see the second post on the first page of the topic(it's long so I won't quote it)
If you want a GUI(what most users expect to see when they run a program) you can use the -g flag(so run the script as "fakku.py -g" or create a batch script with the same command in it - if you renamed the script, change fakku.py to what you renamed it as) The GUI element should work with the grabber and the downloader, but since I don't use windows I cannot guarantee that grabber's GUI will work.
Or you can use waterflame's program/website to download a doujinshi from fakku. It should also accomplish what you're trying to do. Quoting his current signature,
Download all you're favorite fakku doujin at fakkudl.net. Everything from newest to oldest all in one place.
(Now with embed downloads for chrome!) - https://www.fakku.net/viewtopic.php?t=114022
-waterflame <3
(Now with embed downloads for chrome!) - https://www.fakku.net/viewtopic.php?t=114022
-waterflame <3
Well, if you ever write a native executable fell free to post it.
(and include a Linux one for me :P )
0
waterflame
FAKKUDL.NET
Andy29485 wrote...
--snippy pooh(look at the post above this)--I looked in to using "fk.py -g" in one of my windows VM's and it doesn't seem to work.. It just sits there so unless I did something wrong then it doesn't work on windows 7.(I was using version 3.4.1)
Andy29485 wrote...
A native program such a .exe(Windows) will not work on Linux or Mac, and vice versa.Technically you could use WINE(Wine is not emulation :3) or Mono which is used to try to bring .net to linux(and I think mac?)
0
waterflame wrote...
I looked in to using "fk.py -g" in one of my windows VM's and it doesn't seem to work.. I followed the post sciwhiz made on installing python and -g worked in my windows 7 VM(as well as linux). I'm guessing that there were no problems importing tkinter(the module that makes the gui) if it did't spit out any errors. So I'm not sure what to do, but if you're willing to help debug(to fix the problem for any one else)
Look for a line that looks like:
class App:
That's the class that controls the gui. If you could identify the line causing the problem and tell me where it is, or even fix it, I would appreciate it.
waterflame wrote...
Technically you could use WINEThat's true, but I don't want to explain to mac users how to install it(*nix users are smart enough to figure it out, or will look it up ;) And I'm not sure if wine supports all of .net's features.
0
waterflame
FAKKUDL.NET
Andy29485 wrote...
And I'm not sure if wine supports all of .net's features.Last time I tried to run a .net program in WINE it told me to use mono
EDIT:I'll look in to the GUI problem when I get a chance. Thanks for giving me a point in the right direction should save me some time~
0
frustratingidentity wrote...
I changed 2 of the regexp patterns and the script seems to work again.More specifically, I changed the re_pages and re_series patterns.
final file: http://pastebin.com/xv4FJ3JE
Hey, the naming of the files doesn't work anymore, it is just always 'Artist - Title - Series' i just wanted to have [Artist] and (series) like that, but changing it in the fakku.py does nothing..
0
Muunia wrote...
frustratingidentity wrote...
I changed 2 of the regexp patterns and the script seems to work again.More specifically, I changed the re_pages and re_series patterns.
final file: http://pastebin.com/xv4FJ3JE
Hey, the naming of the files doesn't work anymore, it is just always 'Artist - Title - Series' i just wanted to have [Artist] and (series) like that, but changing it in the fakku.py does nothing..
The problem seems to lie with line 87:
return aut.group(1) + ' - ' + tit.group(1) + ' - ' + ser.group(1)
change it to:
return titlefmt.format(author=aut.group(1), title=tit.group(1), series=ser.group(1)
and title format should work again. Or you can use my version.
On a side note(to anyone who's interested), I'm currently trying to merge the link grabber and downloader scripts (as well as clean up the code, implement the api, and some other stuff...)
0
Andy29485 wrote...
Muunia wrote...
frustratingidentity wrote...
I changed 2 of the regexp patterns and the script seems to work again.More specifically, I changed the re_pages and re_series patterns.
final file: http://pastebin.com/xv4FJ3JE
Hey, the naming of the files doesn't work anymore, it is just always 'Artist - Title - Series' i just wanted to have [Artist] and (series) like that, but changing it in the fakku.py does nothing..
The problem seems to lie with line 87:
return aut.group(1) + ' - ' + tit.group(1) + ' - ' + ser.group(1)
change it to:
return titlefmt.format(author=aut.group(1), title=tit.group(1), series=ser.group(1)
and title format should work again. Or you can use my version.
This link isn't working for some reason
https://www.fakku.net/manga/more-than-a-little-sister-less-than-a-friend-more-than-a-little-sister-less-than-a-bride-english
Save: https://www.fakku.net/manga/more-than-a-little-sister-less-than-a-friend-mo
re-than-a-little-sister-less-than-a-bride-english
Here: [momi] More than a little sister, less than a friend? / More than a little
sister, less than a bride? - (Original Work)
Traceback (most recent call last):
File "fakku.py", line 411, in
main(*sys.argv[1:])
File "fakku.py", line 393, in main
dl(line, zip_type, None, args.attempts)
File "fakku.py", line 239, in dl
os.mkdir(dirName)
OSError: [WinError 123] The filename, directory name, or volume label syntax is
incorrect: '[momi] More than a little sister, less than a friend? / More than a
little sister, less than a bride? - (Original Work)'
On a side note(to anyone who's interested), I'm currently trying to merge the link grabber and downloader scripts (as well as clean up the code, implement the api, and some other stuff...)
0
Muunia wrote...
This link isn't working for some reasonhttps://www.fakku.net/manga/more-than-a-little-sister-less-than-a-friend-more-than-a-little-sister-less-than-a-bride-english
Save: https://www.fakku.net/manga/more-than-a-little-sister-less-than-a-friend-mo
re-than-a-little-sister-less-than-a-bride-english
Here: [momi] More than a little sister, less than a friend? / More than a little
sister, less than a bride? - (Original Work)
Traceback (most recent call last):
File "fakku.py", line 411, in
main(*sys.argv[1:])
File "fakku.py", line 393, in main
dl(line, zip_type, None, args.attempts)
File "fakku.py", line 239, in dl
os.mkdir(dirName)
OSError: [WinError 123] The filename, directory name, or volume label syntax is
incorrect: '[momi] More than a little sister, less than a friend? / More than a
little sister, less than a bride? - (Original Work)'
Try it now. I (think) I fixed it.
0
1/1
Save: https://www.fakku.net/manga/more-than-a-little-sister-less-than-a-friend-mo
re-than-a-little-sister-less-than-a-bride-english
Here: [momi] More than a little sister, less than a friend? / More than a little
sister, less than a bride? (Original Work)
Traceback (most recent call last):
File "fakku.py", line 413, in
main(*sys.argv[1:])
File "fakku.py", line 395, in main
dl(line, zip_type, None, args.attempts)
File "fakku.py", line 241, in dl
os.mkdir(dirName)
OSError: [WinError 123] The filename, directory name, or volume label syntax is
incorrect: '[momi] More than a little sister, less than a friend? / More than a
little sister, less than a bride? (Original Work)'
Still isn't working :o unless I downloaded it from the wrong spot o-o
Save: https://www.fakku.net/manga/more-than-a-little-sister-less-than-a-friend-mo
re-than-a-little-sister-less-than-a-bride-english
Here: [momi] More than a little sister, less than a friend? / More than a little
sister, less than a bride? (Original Work)
Traceback (most recent call last):
File "fakku.py", line 413, in
main(*sys.argv[1:])
File "fakku.py", line 395, in main
dl(line, zip_type, None, args.attempts)
File "fakku.py", line 241, in dl
os.mkdir(dirName)
OSError: [WinError 123] The filename, directory name, or volume label syntax is
incorrect: '[momi] More than a little sister, less than a friend? / More than a
little sister, less than a bride? (Original Work)'
Still isn't working :o unless I downloaded it from the wrong spot o-o
0
Muunia wrote...
Still isn't working :o unless I downloaded it from the wrong spot o-oNo it was my fault, I put the line that should fix the error in the wrong spot. This time (I'm almost sure) it is fixed.
0
Andy29485 wrote...
Muunia wrote...
Still isn't working :o unless I downloaded it from the wrong spot o-oNo it was my fault, I put the line that should fix the error in the wrong spot. This time (I'm almost sure) it is fixed.
Yep, g2g now. Thanks so much :]
0
waterflame
FAKKUDL.NET
Andy29485 wrote...
Muunia wrote...
Still isn't working :o unless I downloaded it from the wrong spot o-oNo it was my fault, I put the line that should fix the error in the wrong spot. This time (I'm almost sure) it is fixed.
You fixed it in production so your fine :P
0
Hey, is there any way to get doujin with weird characters to work? e.g. https://www.fakku.net/doujinshi/to-ki-me-ki-tonight-english
0
Muunia wrote...
Hey, is there any way to get doujin with weird characters to work? e.g. https://www.fakku.net/doujinshi/to-ki-me-ki-tonight-englishWell the solution is not elegant, and the output in the console will not be pretty either, but it will work and the name of the directory and zip file will have the correct output. On a side note I would recommend switching to Linux. Well it's fixed. Click me.
0
Andy29485 wrote...
It's fine, if you find any more problems with the script I'll do my best to fix them.I have another one for you https://www.fakku.net/doujinshi/shinkaiseikan-collection-kouwan-ritou-english >>"
0
Muunia wrote...
Andy29485 wrote...
It's fine, if you find any more problems with the script I'll do my best to fix them.I have another one for you https://www.fakku.net/doujinshi/shinkaiseikan-collection-kouwan-ritou-english >>"
I cant seem to reproduce the error. Would you mind pasting the output of the script when you try download that doujinshi?
0
Andy29485 wrote...
Muunia wrote...
Andy29485 wrote...
It's fine, if you find any more problems with the script I'll do my best to fix them.I have another one for you https://www.fakku.net/doujinshi/shinkaiseikan-collection-kouwan-ritou-english >>"
I cant seem to reproduce the error. Would you mind pasting the output of the script when you try download that doujinshi?
H:\#Root\#New folder\yea\!temp>python fakku.py -l fakku_list.txt
1/1
Save: https://www.fakku.net/doujinshi/shinkaiseikan-collection-kouwan-ritou-engli
sh
Traceback (most recent call last):
File "fakku.py", line 414, in
main(*sys.argv[1:])
File "fakku.py", line 396, in main
dl(line, zip_type, None, args.attempts)
File "fakku.py", line 231, in dl
print("Here: {}".format(dirName.encode('utf8').decode(sys.stdout.encoding)))
UnicodeDecodeError: 'cp932' codec can't decode byte 0xef in position 45: illegal
multibyte sequence
0
Muunia wrote...
Andy29485 wrote...
Muunia wrote...
Andy29485 wrote...
It's fine, if you find any more problems with the script I'll do my best to fix them.I have another one for you https://www.fakku.net/doujinshi/shinkaiseikan-collection-kouwan-ritou-english >>"
I cant seem to reproduce the error. Would you mind pasting the output of the script when you try download that doujinshi?
H:\#Root\#New folder\yea\!temp>python fakku.py -l fakku_list.txt
1/1
Save: https://www.fakku.net/doujinshi/shinkaiseikan-collection-kouwan-ritou-engli
sh
Traceback (most recent call last):
File "fakku.py", line 414, in
main(*sys.argv[1:])
File "fakku.py", line 396, in main
dl(line, zip_type, None, args.attempts)
File "fakku.py", line 231, in dl
print("Here: {}".format(dirName.encode('utf8').decode(sys.stdout.encoding)))
UnicodeDecodeError: 'cp932' codec can't decode byte 0xef in position 45: illegal
multibyte sequence
Ok, should be fixed now(another bad workaround).