Clicky

bash | suksit dot com

bash

Our Manga Downloader on GitHub

ฉลองครบรอบการดองบล็อกเป็นเวลา 1 เดือน(กว่าๆ) ด้วยสคริปต์ใหม่ =.=

หลังจาก One Manga ปิดตัวไปเมื่อประมาณเดือนสิงหา ผมก็พยายามเปลี่ยนพฤติกรรมการอ่าน manga มาเป็นอ่านบนเว็บแทน ที่ติดตามหลักๆ ก็จะเป็น mangastream.com และ ourmanga.com แต่ทำอยู่ได้ไม่นานก็ทนไม่ไหว เนื่องจากขี้เกียจคลิกเข้าไปดูทุกวันว่ามันมี manga อะไรอัพเดตบ้าง สุดท้ายเลยได้ Our Manga Downloader มาด้วยประการฉะนี้ :P

สคริปต์ตัวนี้เขียนแบบขี้เกียจ + ขี้โกงสุดๆ เพราะถ้าเป็นสคริปต์ตัวเดิม (onemanga) จะต้องอ่านหน้าเว็บเพจ แล้วค่อย extract ข้อมูลออกมาตามเสต็ป คล้ายๆ การคลิกเข้าไปในเว็บจริงๆ แต่ตัวใหม่ (ourmanga) นี้ใช้ทางลัด อาศัยว่าทางเว็บเค้าเปิดฟีเจอร์แสดงรายชื่อไฟล์ในไดเร็กทอรีเอาไว้ เลยไม่ต้อง parse หน้าเว็บหาลิงก์ให้ยุ่งยาก ใส่ URL ไปตูมเดียวก็ได้หน้าเว็บที่มีแต่ลิงก์ไปยังรูปล้วนๆ xD

ฟีเจอร์ของสคริปต์ลอกมาจาก onemanga ทั้งดุ้น ใครเคยใช้ของเก่าอยู่แล้วก็ไม่น่ามีปัญหา ส่วนวิธีติดตั้งและใช้งานก็เหมือนเดิมเด๊ะ เข้าไปดูใน One Manga Downloader Wiki page ได้เลยครับ (อย่าลืมเปลี่ยน git clone URL เป็นของ ourmanga แทน)

ปล. จริงๆ ไม่ค่อยอยากปล่อยเท่าไร กลัวทางเว็บไหวตัวทัน ปิดฟีเจอร์แสดงรายชื่อไฟล์แล้วต้องมานั่งเขียนสคริปต์ใหม่ T_T แต่จะเก็บไว้ใช้คนเดียวก็กระไรอยู่ ถ้าสคริปต์นี้พอจะมีประโยชน์กับชาวโลกบ้าง ก็ถือว่าคุ้ม :D

One Manga Downloader Now Supports Series Hosted on 1000manga.com

As you may have noticed recently, onemanga.com has removed some of their series from the site e.g. Vagabond and Zetman due to license issue. They did it by removing all links from the manga page.

However, today I just found that instead of just removing the links from the manga page, they now provides a link to their sister site (say 1000manga.com) which is still hosting the manga I mentioned above.

Luckily, the code on 1000manga.com is almost the same as onemanga.com so I tweaked the script to automatically download the file from 1000manga.com if it has to do so.

So here's the updated One Manga Downloader. Enjoy reading your favorite mangas!

P.S. Many thanks to the One Manga team for providing and maintaining all those high quality scans :)

(Yet Another) One Manga Downloader Update

Quick summary:

  • Now archive extension is .cbz as it should be (there were many ppl asking about this bad preference of mine :P)
  • Add backward compatibility to check the already downloaded chapters which has old extension (.cbr)
  • Fix an issue with sed command on Mac OS X.
  • Now index.html will be removed along with other temporary files.
  • Misc. improvements in code and error/status messages.

I guess you already know where to get it.

Enjoy reading One Manga!

P.S. If you are looking for a GUI One Manga downloader then MangaDownloader [MD] may be the answer for you.

One Manga Downloader Update

Just to inform you that I have updated One Manga Downloader script. The changes are:

  • Add search functionality using -s option
  • Improve temporary files cleanup process
  • Improve option validation and error/status messages

Searching for mangas

Have you ever wonder:

  • if the manga you want is on onemanga.com or not
  • what manga name (in URL) to type in to download it.

The search function now comes to rescue.

Read the rest of this entry »

One Manga Downloader on GitHub

Dear One Manga readers,

I'm glad to announce that the most recent version of One Manga Downloader script is now hosted on GitHub.

I've made some improvements to the script according to Wout Mertens' comment for better support on Mac OSX. Thanks, Wout :D

As usual, if you find any bug please do not hesitate to post an issue on GitHub or leave a comment here (I've only tested it on Cygwin so there may be some problem on other platforms).

That's it. Happy downloading!