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!
2
Hi fellow Fakkuers!
Download links have been down for quite a while now. A lot of people have been very helpfully providing links in the comments sections, but sometimes it's still not enough, especially on older manga! What to do?
I too came across this problem so I wrote up a quick Python script for downloading the images from fakku. Here it is: http://pastebin.com/fGSEwGiW
You use it like this: python fakku.py "https://www.fakku.net/manga/lespedeza-english" "Candy"
This will save all the images in a directory (folder) called Candy.
If you don't know how to use this, I apologize, but I'm not going to help you, since I'm bad at explaining techy things. Hopefully some other friendly people can help you.
Download links have been down for quite a while now. A lot of people have been very helpfully providing links in the comments sections, but sometimes it's still not enough, especially on older manga! What to do?
I too came across this problem so I wrote up a quick Python script for downloading the images from fakku. Here it is: http://pastebin.com/fGSEwGiW
You use it like this: python fakku.py "https://www.fakku.net/manga/lespedeza-english" "Candy"
This will save all the images in a directory (folder) called Candy.
If you don't know how to use this, I apologize, but I'm not going to help you, since I'm bad at explaining techy things. Hopefully some other friendly people can help you.
2
I'm always impressed with how python manages to do so much with so few lines. Definitely going to use this. So setup time for people who don't know how run command line tools, because this 63 line tool is worth it:
1-Install python
Windows
You'll want to get python 3.xx 32-bit or 64-bit. Get 32-bit if your your windows is 32-bit and 64-bit if your windows is 64-bit. To check what version of windows you have hit Windows + Pause Break. Install the msi, just double click, next, next, next agree, install.
Linux
Install python through the repository of your distro. Should be something along the lines of "apt-get install python" or "pacman -Syu python" or "emerge python". Run with root or sudo.
2-Putting python in your path variable
Windows
If you installed 32 bit on a 64 bit windows, copy this string to the clipboard:
C:\Program Files (x86)\Python32
If you installed 32 bit on a 32-bit windows, or installed 64-bit on a 64-bit windows, copy this string to the clipboard:
C:\Program Files\Python32
Either way, figure out where python has installed itself.
Hit Win + pausebreak, click "Advanced system settings" on the side, go to the advanced tab, click the "environment variables" at the bottom, find the "Path" variable in the System variables section, and edit it.
In variable value, move your cursor to the end the of string by hitting the "End" button on your keyboard. If the last character isn't a semicolon(;), add one. Then paste the string copied previously after the semicolon. Hit ok and get out of there, then reboot.
Linux
If you installed python through the repository of your distro, nothing to do. If you managed to do some weird style install, then copy the directory containing your binaries to the path of of your shell with
[font=Courier New]PATH=$PATH:/where/your/python/bins/are/
export PATH[/font]
3-Getting the script
Windows and Linux
Go to the pastebin link, copy all the lines in the box from lines 1 to line 63 inclusively into a new notepad file. Save the file somewhere as "whateveryouwant.py" without the "". Save it to where you want to download the doujins to.
4-Using it
Find a url link to a doujin like in the first post, and copy to your clipboard.
Windows
Open a command prompt in the same directory as the script, by holding shift and right-clicking in some blank space of the explorer window, or the desktop if that's where you saved the script. Click "open command window here" in the context menu. Then follow the above instructions of the first post. Type:
[font=Courier New]python thescriptname.py [/font]
then hit space, right click in the command prompt, paste the url. hit space again and type a folder name to save the doujin. You must use double quotes(") around the folder name if the name has spaces in it. Then hit enter and its done.
Linux
Open a terminal, whichever one you want, and navigate manually with "cd" to where you saved the script. Alternatively, if you're using kde4, and have updated to kde 4.9, you can drag and drop the folder where the script is saved into konsole. It will then prompt you if you want to change directory to said folder in the context menu. Then proceed like above.
Updated version
I've added extra regular expressions to parse the title, author and series of a manga. With this version, there is no need to add a new folder, as it will automatically create one with the syntax: title - author - series. All you need to type in is the link of manga like:
[color=black][font=Courier New]
python fakku.py https://www.fakku.net/manga/kesson-shoujo-maniacs-14-english[/font][/color]
http://pastebin.com/ERQXP6t8
1-Install python
Windows
You'll want to get python 3.xx 32-bit or 64-bit. Get 32-bit if your your windows is 32-bit and 64-bit if your windows is 64-bit. To check what version of windows you have hit Windows + Pause Break. Install the msi, just double click, next, next, next agree, install.
Linux
Install python through the repository of your distro. Should be something along the lines of "apt-get install python" or "pacman -Syu python" or "emerge python". Run with root or sudo.
2-Putting python in your path variable
Windows
If you installed 32 bit on a 64 bit windows, copy this string to the clipboard:
C:\Program Files (x86)\Python32
If you installed 32 bit on a 32-bit windows, or installed 64-bit on a 64-bit windows, copy this string to the clipboard:
C:\Program Files\Python32
Either way, figure out where python has installed itself.
Hit Win + pausebreak, click "Advanced system settings" on the side, go to the advanced tab, click the "environment variables" at the bottom, find the "Path" variable in the System variables section, and edit it.
In variable value, move your cursor to the end the of string by hitting the "End" button on your keyboard. If the last character isn't a semicolon(;), add one. Then paste the string copied previously after the semicolon. Hit ok and get out of there, then reboot.
Linux
If you installed python through the repository of your distro, nothing to do. If you managed to do some weird style install, then copy the directory containing your binaries to the path of of your shell with
[font=Courier New]PATH=$PATH:/where/your/python/bins/are/
export PATH[/font]
3-Getting the script
Windows and Linux
Go to the pastebin link, copy all the lines in the box from lines 1 to line 63 inclusively into a new notepad file. Save the file somewhere as "whateveryouwant.py" without the "". Save it to where you want to download the doujins to.
4-Using it
Find a url link to a doujin like in the first post, and copy to your clipboard.
Windows
Open a command prompt in the same directory as the script, by holding shift and right-clicking in some blank space of the explorer window, or the desktop if that's where you saved the script. Click "open command window here" in the context menu. Then follow the above instructions of the first post. Type:
[font=Courier New]python thescriptname.py [/font]
then hit space, right click in the command prompt, paste the url. hit space again and type a folder name to save the doujin. You must use double quotes(") around the folder name if the name has spaces in it. Then hit enter and its done.
Linux
Open a terminal, whichever one you want, and navigate manually with "cd" to where you saved the script. Alternatively, if you're using kde4, and have updated to kde 4.9, you can drag and drop the folder where the script is saved into konsole. It will then prompt you if you want to change directory to said folder in the context menu. Then proceed like above.
Spoiler:
Updated version
I've added extra regular expressions to parse the title, author and series of a manga. With this version, there is no need to add a new folder, as it will automatically create one with the syntax: title - author - series. All you need to type in is the link of manga like:
[color=black][font=Courier New]
python fakku.py https://www.fakku.net/manga/kesson-shoujo-maniacs-14-english[/font][/color]
http://pastebin.com/ERQXP6t8
0
I'm going to assume you're on windows
1: Did you manage to install python correctly, and get in into your path variable? You can test if you did this by just opening a command prompt and typing.
[font=Courier New]
python[/font]
If it doesn't show up the python introduction message, and shows up
[font=Courier New]'python' is not recognized as an internal or external command...[/font]
then you need to make sure you did the first 2 parts correctly. Remember that you need to reboot to make sure the path variable actually sets itself.
2: Assuming you did install everything correctly, you might have a problem with the way you're writing the command. You must not have extra spaces between the arguments, or extra arguments. In case of doubt, double quote the site and the folder you want to save to. Try writing the command like in the 1st post:
[font=Courier New]python fakku.py "mangalink" "foldername"[/font]
3:Make sure you've navigated to the correct folder in the command prompt. If you type
[font=Courier New]dir[/font]
you should get a nice list of files and folders of the current folder you are in. If you don't see the file where your script is in, then you've not navigated to the correct folder. Hopefully this isn't the problem because the writeup to change directories for beginners is quite long.
4: I don't know about other people, but I disabled UAC, so I'm always running my command prompt in admin mode. I have no clue if this actually has any impact, but most command line tutorials recommend to do this for some reason. Try running the command prompt in admin mode, or type "UAC" in the windows start search, and bring the bar down to the lowest, then restart.
If you checked all of that and it still doesn't work, post screenshot
1: Did you manage to install python correctly, and get in into your path variable? You can test if you did this by just opening a command prompt and typing.
[font=Courier New]
python[/font]
If it doesn't show up the python introduction message, and shows up
[font=Courier New]'python' is not recognized as an internal or external command...[/font]
then you need to make sure you did the first 2 parts correctly. Remember that you need to reboot to make sure the path variable actually sets itself.
2: Assuming you did install everything correctly, you might have a problem with the way you're writing the command. You must not have extra spaces between the arguments, or extra arguments. In case of doubt, double quote the site and the folder you want to save to. Try writing the command like in the 1st post:
[font=Courier New]python fakku.py "mangalink" "foldername"[/font]
3:Make sure you've navigated to the correct folder in the command prompt. If you type
[font=Courier New]dir[/font]
you should get a nice list of files and folders of the current folder you are in. If you don't see the file where your script is in, then you've not navigated to the correct folder. Hopefully this isn't the problem because the writeup to change directories for beginners is quite long.
4: I don't know about other people, but I disabled UAC, so I'm always running my command prompt in admin mode. I have no clue if this actually has any impact, but most command line tutorials recommend to do this for some reason. Try running the command prompt in admin mode, or type "UAC" in the windows start search, and bring the bar down to the lowest, then restart.
If you checked all of that and it still doesn't work, post screenshot
0
Thank you sciwhiz for your great tutorial.
I've updated my script, adding a gui option to make it more user friendly. Here is a link: https://github.com/darkfeline/fakku_downloader
Techy summary: You can still use it like a script
Newbie instructions:
1) Follow sciwhiz's instructions as above Step 1 and 2 (installing Python and adding it to your path).
2) Go to the link and click on ZIP to download the latest version. Download and extract it somewhere.
3) Go into the folder (you can rename it whatever you want, since by default it has a long gibberish name) and double click on the .bat on Windows or .sh on Linux (and maybe Mac OS? I don't use Mac, so...). Poof! A beautiful (but simple) GUI!
4) Put the fakku URL in the URL box, and what folder name you want to save it in, and click Download (or hit enter in the name box). The big box on the bottom will repeat what you entered to confirm and output download status. If there are any errors, it'll show up here, too.
Enjoy!
EDIT: aww, don't I get +rep? =P
I've added sciwhiz's autonaming functionality. This works both in command line and GUI.
EDIT2: as a bonus, you can change what the default autoname format is. Open up fakku.py in Notepad or another text editor. See the line
I've updated my script, adding a gui option to make it more user friendly. Here is a link: https://github.com/darkfeline/fakku_downloader
Techy summary: You can still use it like a script
fakku.py url folder_to_save_as
or you can start GUI mode fakku.py -g
Newbie instructions:
1) Follow sciwhiz's instructions as above Step 1 and 2 (installing Python and adding it to your path).
2) Go to the link and click on ZIP to download the latest version. Download and extract it somewhere.
3) Go into the folder (you can rename it whatever you want, since by default it has a long gibberish name) and double click on the .bat on Windows or .sh on Linux (and maybe Mac OS? I don't use Mac, so...). Poof! A beautiful (but simple) GUI!
4) Put the fakku URL in the URL box, and what folder name you want to save it in, and click Download (or hit enter in the name box). The big box on the bottom will repeat what you entered to confirm and output download status. If there are any errors, it'll show up here, too.
Enjoy!
EDIT: aww, don't I get +rep? =P
I've added sciwhiz's autonaming functionality. This works both in command line and GUI.
EDIT2: as a bonus, you can change what the default autoname format is. Open up fakku.py in Notepad or another text editor. See the line
titlefmt = '{title} - {author} - {series}'
If you want it just to be the title, change it to titlefmt = '{title}'
If you want it to be "Manga Title by Manga Author", change it to titlefmt = '{title} by {author}'
Amazing!
0
@SirRaven Did you install Python 2? You'll need to install Python 3 to use this. Please post the entire error message even if it seems like long gibberish (just copypasta), it'll help me figure out what's wrong.
0
why would you try hard if it can be easy:
domdomsoft mangadownloader (fakku is in it )(30 day trial only to download from it)
or maxthon 3 (quick image save [cntrl-click{left}])
fast and easy
domdomsoft mangadownloader (fakku is in it )(30 day trial only to download from it)
or maxthon 3 (quick image save [cntrl-click{left}])
fast and easy
0
It IS easy, because it's Python. Plus, it's extensible, and it works on Windows, Mac, and Linux. You know there's no virus because it's open source. Would you like me to upgrade it so it automatically downloads all new manga? ;)
0
Flaser
OCD Hentai Collector
For anything older (released before 2011.09.07) you could check the torrent in my sig, or use FlashBot on the IRC channel (irc://#fakku@irc.rizon.net).
OFF: I'm working on a new version, I've just been busy with real life and translators are way too prolific for me to catch up with in the short time I do have available.
OFF: I'm working on a new version, I've just been busy with real life and translators are way too prolific for me to catch up with in the short time I do have available.
0
Aw yeah, python! This script is just what I needed.
My internet hates torrents, and I still have nightmares about IRC downloading...
And the regex is glorious, I was thinking of writing a scraper and now I have an example.
Much thanks to you both!
My internet hates torrents, and I still have nightmares about IRC downloading...
And the regex is glorious, I was thinking of writing a scraper and now I have an example.
Much thanks to you both!
1
I updated this because I'm lazy, and wanted to download a ton at once, instead of downloading and getting each URL individually. So I took every URL I wanted to download, and put them in a text file --
The python script uses a text file named "fakku_list.txt" and uses that to take the list of URLs inside and use the original script to download all of them. Just place them in the same folder, make sure that your fakku_list.txt EXISTS and HAS URLS INSIDE OF IT.
Also of note: Make sure your original Python file is "fakku.py" or alternatively, update it inside of my Python file.
example
pastebin
The python script uses a text file named "fakku_list.txt" and uses that to take the list of URLs inside and use the original script to download all of them. Just place them in the same folder, make sure that your fakku_list.txt EXISTS and HAS URLS INSIDE OF IT.
Also of note: Make sure your original Python file is "fakku.py" or alternatively, update it inside of my Python file.
example
pastebin
1
mushee wrote...
I updated this because I'm lazy, and wanted to download a ton at once, instead of downloading and getting each URL individually. So I took every URL I wanted to download, and put them in a text file --The python script uses a text file named "fakku_list.txt" and uses that to take the list of URLs inside and use the original script to download all of them. Just place them in the same folder, make sure that your fakku_list.txt EXISTS and HAS URLS INSIDE OF IT.
Also of note: Make sure your original Python file is "fakku.py" or alternatively, update it inside of my Python file.
example
pastebin
Thanks for the idea, I added it to my downloader. You use it "python fakku.py -l fakku_list.txt". I'm still maintaining it, so if anyone has any feature requests, I'll be willing to take a look.
0
silencio200 wrote a patch for possible HTTP 502 bad gateway errors. This is mostly technical, for regular users, the only difference is that if there's an HTTP error, it'll retry a couple of times before failing.
I also added contributors: sciwhiz and mushee. If you don't want to be listed or under a different name, just leave a post.
I also added contributors: sciwhiz and mushee. If you don't want to be listed or under a different name, just leave a post.
0
Fixed a bug where it bugs out if there's a unicode character in the URL. I ran into it when I was downloading https://www.fakku.net/manga/blindfolding-byb-lock-english
Don't believe me? See here http://cdn.fakku.net/8041E1/c/manga/b/[mogg]_Original_Work_-_Blindfolding_☆_Lock/images/001.jpg There's literally a star in the middle of the URL.
Don't believe me? See here http://cdn.fakku.net/8041E1/c/manga/b/[mogg]_Original_Work_-_Blindfolding_☆_Lock/images/001.jpg There's literally a star in the middle of the URL.
0
For some reason this isn't working anymore, I keep getting this wall of text instead of it working
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python33\lib\tkinter\__init__.py", line 1475, in __call__
return self.func(*args)
File "fakku.py", line 198, in dl
dl(self.url.get(), self.name.get())
File "fakku.py", line 105, in dl
dir = get_folder(url)
File "fakku.py", line 79, in get_folder
html = get_html(page)
File "fakku.py", line 35, in get_html
conn = urllib.request.urlopen(url)
File "C:\Python33\lib\urllib\request.py", line 156, in urlopen
return opener.open(url, data, timeout)
File "C:\Python33\lib\urllib\request.py", line 475, in open
response = meth(req, response)
File "C:\Python33\lib\urllib\request.py", line 587, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python33\lib\urllib\request.py", line 513, in error
return self._call_chain(*args)
File "C:\Python33\lib\urllib\request.py", line 447, in _call_chain
result = func(*args)
File "C:\Python33\lib\urllib\request.py", line 595, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
Any idea whats wrong?
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python33\lib\tkinter\__init__.py", line 1475, in __call__
return self.func(*args)
File "fakku.py", line 198, in dl
dl(self.url.get(), self.name.get())
File "fakku.py", line 105, in dl
dir = get_folder(url)
File "fakku.py", line 79, in get_folder
html = get_html(page)
File "fakku.py", line 35, in get_html
conn = urllib.request.urlopen(url)
File "C:\Python33\lib\urllib\request.py", line 156, in urlopen
return opener.open(url, data, timeout)
File "C:\Python33\lib\urllib\request.py", line 475, in open
response = meth(req, response)
File "C:\Python33\lib\urllib\request.py", line 587, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python33\lib\urllib\request.py", line 513, in error
return self._call_chain(*args)
File "C:\Python33\lib\urllib\request.py", line 447, in _call_chain
result = func(*args)
File "C:\Python33\lib\urllib\request.py", line 595, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
Any idea whats wrong?