question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

πŸ› Bug: webtoons.com age redirection

See original GitHub issue

Bug report

Got stuck with age redirection.

Environment:

Component Value
Docker 🐳 βœ”
OS Debian GNU/Linux 10 (buster)
Python version Python 3.6.8
Pip version pip 19.1.1
Npm version 6.14.4
Manga-py version 1.19.7
URL https://www.webtoons.com/en/fantasy/the-gamer/list?title_no=88

To Reproduce:

Steps to reproduce the behavior:

docker run --interactive --tty --rm --name manga-py \
  -v $PWD:/home/manga/Manga mangadl/manga-py \
  manga-py \
    --destination /home/manga/Manga --cbz --zero-fill \
    --rename-pages --no-webp --show-current-chapter-info \
    'https://www.webtoons.com/en/fantasy/the-gamer/list?title_no=88' \
    -c3

Additional context

Add any other context about the problem here.

Output:

"WARNING:/manga_py/parser.py:43:2020-05-23 15:29:28,456:Manga url changed! New url: https://www.webtoons.com/en/ageGate"
Traceback (most recent call last):
  File "/usr/local/bin/manga-py", line 10, in <module>
    sys.exit(main())
    β”‚        β”” <function main at 0x7f1bcbf18b70>
    β”” <module 'sys' (built-in)>
  File "/usr/local/lib/python3.6/site-packages/manga_py/util.py", line 110, in main
    exit(run_util(args))
    β”‚    β”‚        β”” ArgumentParser(prog='manga-py', usage=None, description='%(prog)s is the universal manga downloader (for your offline reading).\...
    β”‚    β”” <function run_util at 0x7f1bcbf189d8>
    β”” <built-in function exit>
  File "/usr/local/lib/python3.6/site-packages/manga_py/util.py", line 83, in run_util
    _info = _run_util(args)
            β”‚         β”” ArgumentParser(prog='manga-py', usage=None, description='%(prog)s is the universal manga downloader (for your offline reading).\...
            β”” <function _run_util at 0x7f1bcbf188c8>
  File "/usr/local/lib/python3.6/site-packages/manga_py/util.py", line 41, in _run_util
    Cli(args, _info).start()
    β”‚   β”‚     β”” <manga_py.info.Info object at 0x7f1bcbf15a90>
    β”‚   β”” ArgumentParser(prog='manga-py', usage=None, description='%(prog)s is the universal manga downloader (for your offline reading).\...
    β”” <class 'manga_py.cli.Cli'>
  File "/usr/local/lib/python3.6/site-packages/manga_py/cli/__init__.py", line 47, in start
    self.parser.start()
    β”” <manga_py.cli.Cli object at 0x7f1bcbf15a58>
  File "/usr/local/lib/python3.6/site-packages/manga_py/parser.py", line 59, in start
    self.provider.process(self.params['url'], self.params)
    β”‚                     β”‚                   β”” <manga_py.parser.Parser object at 0x7f1bcbf15a20>
    β”‚                     β”” <manga_py.parser.Parser object at 0x7f1bcbf15a20>
    β”” <manga_py.parser.Parser object at 0x7f1bcbf15a20>
  File "/usr/local/lib/python3.6/site-packages/manga_py/provider.py", line 89, in process
    info('Manga name: %s' % self.manga_name)
    β”‚                       β”” <manga_py.providers.webtoons_com.WebToonsCom object at 0x7f1bcbf15e48>
    β”” <function info at 0x7f1bcc8b81e0>
  File "/usr/local/lib/python3.6/site-packages/manga_py/base_classes/params.py", line 17, in manga_name
    name = self.get_manga_name()
    β”‚      β”” <manga_py.providers.webtoons_com.WebToonsCom object at 0x7f1bcbf15e48>
    β”” None
  File "/usr/local/lib/python3.6/site-packages/manga_py/providers/webtoons_com.py", line 24, in get_manga_name
    self.__titleNo = self._get_name('title_no=(\d+)'')
    β”‚                β”” <manga_py.providers.webtoons_com.WebToonsCom object at 0x7f1bcbf15e48>
    β”” <manga_py.providers.webtoons_com.WebToonsCom object at 0x7f1bcbf15e48>
  File "/usr/local/lib/python3.6/site-packages/manga_py/providers/helpers/std.py", line 56, in _get_name
    return re.search(selector, url).group(1)
           β”‚         β”‚         β”” 'https://www.webtoons.com/en/ageGate'
           β”‚         β”” 'title_no=(\\d+)'
           β”” <module 're' from '/usr/local/lib/python3.6/re.py'>
AttributeError: 'NoneType' object has no attribute 'group'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
1271commented, May 26, 2020

Ок. I’ll try again in the evening πŸ˜„

1reaction
gromenauercommented, May 24, 2020

Tried a bit more, but nothing:

    def prepare_cookies(self):
        self.http().cookies['ageGatePass'] = 'true'
        self.http().cookies['needGDPR'] = 'true'
        self.http().cookies['locale'] = 'en'
        self.http().cookies['wtv'] = '1'
        self.http().cookies['timezoneOffset'] = '+2'
        self.http().referer = 'https://www.webtoons.com/en/ageGate'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Webtoons redirects to loginfra.com and back to ... - Reddit
Visit https://www.webtoons.com/en/ and verify age (01/01/2000) Β· Click on "Cookie Settings" at the bottom Β· You get redirected to https://cc.
Read more >
Age Verification - Webtoon
Please enter your date of birth below to continue. ... Valid date required. Your date of birth is required for age verification purposes....
Read more >
Bugtopia - Webtoon
A Ladybug boy with Spider Moms? A Bee and Wasp power couple? A Bug Assassin with a heart of gold? See all these...
Read more >
WEBTOONβ„’ Terms of Use
The use of the Service by anyone under the Minimum Age is ... OR YOUR ACCESS TO AND USE OF THE SERVICE WILL...
Read more >
Age Matters | WEBTOON
Age Matters Β· Facebook Β· Twitter Β· Tumblr Β· Reddit Β· URL COPY. The URL has been copied. Paste(Ctrl+V) it in the desired...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found