Git Product home page Git Product logo

mangal-scrapers's People

Contributors

balajsra avatar belphemur avatar maus-me avatar maxpiva avatar metafates avatar oae avatar vodkapmp avatar xfnty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mangal-scrapers's Issues

cant find lua html module

I hate to open an issue for something seemingly simple like this but I cannot for the life of me find where the Lua module "html" that is used in the scrapers can be installed. I don't see it on luarocks anywhere. I wrote a few manga scrapers in python for a couple of sites and I would like to port them over to Lua but I'm still fairly new to the process of managing dependencies in Lua.

Just for clarification can you point me to where the correct html and https modules are?

Adding support for Asura Scans

Adding support for Asura Scans and other Madara themed sites would be nice. I'd assume that it would be similar to the Luminous Scans scraper(although I haven't been able to make it work yet). Or even a blank template of sorts for these sites would work

None of these work for me running on a Raspberry PI 4 32bit-arm

The built inn sources for Mangal seems to work fine, but none of these extra sources work at all. Getting different errors depending if its an "headless chrome" source or not.

 Error

  X Uggh, something went wrong. Maybe try again?

  I used to download stuff without any errors, then I took an arrow to the knee. By arrow I mean this:

  /home/knarf/.config/mangal/sources/AsuraScans.lua:22: attempt to index a non-table object(nil) with key 'page'
  stack traceback:
      /home/knarf/.config/mangal/sources/AsuraScans.lua:22: in main chunk
      [G]: ?
enter confirm • tab accept search suggestion • ctrl+c quit
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x9c7f34]

goroutine 131 [running]:
github.com/metafates/mangal/tui.(*statefulBubble).searchManga.func1.1({0x0, 0x0})
	github.com/metafates/mangal/tui/handlers.go:156 +0x78
created by github.com/metafates/mangal/tui.(*statefulBubble).searchManga.func1
	github.com/metafates/mangal/tui/handlers.go:154 +0x244	

When using Mangasee headless chromium-1033860 browser crashes on some entries.

When I try to download some chapters on certain manga entries on MangaSee headless chromium connector version 1033860; mangal crashes with the following error. I am using the latest git version of the scrapers and mangal itself.
The following example entry crashes each and every time I tried.
My Isekai Life - I Gained a Second Character Class and Became the Strongest Sage in the World
https://mangasee123.com/manga/Tensei-Kenja-No-Isekai-Raifu

esc back • ctrl+c quit                                                                                                     
panic:  field of "url" is required                                                                                           
stack traceback:
	[G]: ?

goroutine 197 [running]:
github.com/yuin/gopher-lua.panicWithTraceback(0xc0005809c0?)
	<PATH>/mangal/vendor/github.com/yuin/gopher-lua/state.go:601 +0xa5
github.com/yuin/gopher-lua.(*LState).raiseError(0xc000398000, 0x1, {0xc0005809a0?, 0x1a?}, {0x0?, 0x0?, 0x0?})
	<PATH>/mangal/vendor/github.com/yuin/gopher-lua/state.go:696 +0x25d
github.com/yuin/gopher-lua.(*LState).RaiseError(...)
	<PATH>/mangal/vendor/github.com/yuin/gopher-lua/state.go:1671
github.com/metafates/mangal/provider/custom.(*luaSource).PagesOf.func1({0x15526a0, 0xc0003cd0b0}, {0x1551a60?, 0xc0001438c0?})
	<PATH>/mangal/provider/custom/pages.go:31 +0x1f5
github.com/yuin/gopher-lua.(*LTable).ForEach(0xc000143680, 0xc0005d9c60)
	<PATH>/mangal/vendor/github.com/yuin/gopher-lua/table.go:330 +0x2fa
github.com/metafates/mangal/provider/custom.(*luaSource).PagesOf(0xc000504900, 0xc00069e200)
	<PATH>/mangal/provider/custom/pages.go:19 +0x135
github.com/metafates/mangal/downloader.Download(0xc00069e200, 0xc00045af50)
	<PATH>/mangal-git/src/mangal/downloader/download.go:43 +0x359
github.com/metafates/mangal/tui.(*statefulBubble).downloadChapter.func1()
	<PATH>/mangal/tui/handlers.go:250 +0x98
github.com/charmbracelet/bubbletea.(*Program).StartReturningModel.func6.1()
	<PATH>/mangal/vendor/github.com/charmbracelet/bubbletea/tea.go:469 +0x33
created by github.com/charmbracelet/bubbletea.(*Program).StartReturningModel.func6
	<PATH>/mangal/vendor/github.com/charmbracelet/bubbletea/tea.go:467 +0x14d

I also found several other entries/links. It seems that if the entry has many chapters, it fails with the "url is required"
message. Though one with 117 chapters did successfully download. The above example only had 73 chapters to be downloaded. I did try to download several single chapters randomly and it result was the same.

ComicK scraper not working

When trying to use the ComicK scraper I am getting this issue.
Doesn't matter what manga I try and get it to work with, all of them end up with this error.

Error                                                                                                 
                                                                                                         
  X Uggh, something went wrong. Maybe try again?                                                         
                                                                                                         
  Fighting an endless army of errors and bugs Mangal died a hero. Their last words were:                 
                                                                                                         
  /config/.config/mangal/sources/ComicK.lua:72: cannot perform div operation between nil and number      
  stack traceback:                                                                                       
      /config/.config/mangal/sources/ComicK.lua:72: in main chunk                                        
      [G]: ?

ComicK scrapper gives error

Error message that I get when I try to use this source:

   Error

  X Uggh, something went wrong. Maybe try again?

  I used to download stuff without any errors, then I took an arrow to the knee. By arrow I mean this:

  /home/adhiraj/.config/mangal/sources/ComicK.lua:44: bad argument #1 to pairs (table expected, got nil)
  stack traceback:
      [G]: in function 'pairs'
      /home/guest_user/.config/mangal/sources/ComicK.lua:44: in main chunk
      [G]: ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.