Quantcast
Channel: help - Forum - FlexGet
Viewing all articles
Browse latest Browse all 837

Unable to post login form since cloudflare activated on ygg

$
0
0

@Chris wrote:

Hello,

I can't login anymore to yggtorrent since the site has activated cloudflare.
I have added the cfscraper in my config, but no way.

This is my config:

variables: secretfile.yml
templates:
  global:
    tmdb_lookup: yes
  transmission:
    transmission:
      host: localhost
      port: 8080
      username: '{? trans.usr ?}'
      password: '{? trans.pwd ?}'
      content_filename: "{{ tmdb_name }} ({{ tmdb_year }}).{{ quality }}.bluray"
      main_file_only: yes
      ratio: -1
      path: /home/chris/flexdownloads/
tasks:
  yggtorrent_1080p:
    cfscraper: yes
    form:
      url: https://yggtorrent.com/user/login
      userfield: id
      passfield: pass
      username: '{? ygg.usr ?}'
      password: '{? ygg.pwd ?}'
    html:
      url: "https://yggtorrent.com/torrents/filmvideo/2183-film?per_page=10&order=desc&sort=publish_date&page=0"
      title_from: link
      links_re:
        - "/filmvidéo/.*[0-9]{5}-.*"
    urlrewrite:
      yggtorrent:
        regexp: 'https://yggtorrent.com/torrent/.*/.*/(?P<id>\d+)-(?P<name>.*)'
        format: 'http://yggtorrent.com/engine/download_torrent?id=\g<id>'
    quality:
      - 1080p
      - bluray
    imdb:
      min_score: 6.1
    require_field: imdb_url
    seen_movies: strict
    template:
      - transmission

And this is my log:

$ flexget --loglevel debug --logfile test.log -c config-TEST.yml execute --tasks yggtorrent_1080p
2017-10-20 19:24 DEBUG manager Figuring out config load paths
2017-10-20 19:24 DEBUG manager Found config: /home/chris/.flexget/config-TEST.yml
2017-10-20 19:24 DEBUG manager Config file /home/chris/.flexget/config-TEST.yml selected
2017-10-20 19:24 DEBUG manager sys.defaultencoding: ascii
2017-10-20 19:24 DEBUG manager sys.getfilesystemencoding: UTF-8
2017-10-20 19:24 DEBUG manager flexget detected io encoding: utf-8
2017-10-20 19:24 DEBUG manager os.path.supports_unicode_filenames: False
2017-10-20 19:24 DEBUG plugin Trying to load plugins from: [u'/home/chris/.flexget/plugins', '/opt/rh/python27/root/usr/lib64/python2.7/site-packages/flexget/plugins']
2017-10-20 19:24 DEBUG plugin (u'Plugin %s requires %s to load.', u'memusage', u'ext lib guppy')
2017-10-20 19:25 DEBUG plugin Plugins took 7.41 seconds to load. 285 plugins in registry.
2017-10-20 19:25 DEBUG manager Connecting to: sqlite:////home/chris/.flexget/db-config-TEST.sqlite
2017-10-20 19:25 DEBUG manager config_name: config-TEST
2017-10-20 19:25 DEBUG manager config_base: /home/chris/.flexget
2017-10-20 19:25 DEBUG variables trying to load variables from file
2017-10-20 19:25 DEBUG variables updating DB with variable file contents
2017-10-20 19:25 DEBUG manager New config data loaded.
2017-10-20 19:25 DEBUG schema current flexget version already exist in db 2.10.102
2017-10-20 19:25 DEBUG parsing setting default movie parser to internal. (options: {u'internal': , u'guessit': })
2017-10-20 19:25 DEBUG parsing setting default series parser to internal. (options: {u'internal': , u'guessit': })
2017-10-20 19:25 DEBUG cron_env Encoding UTF-8 stored
2017-10-20 19:25 DEBUG util.simple_persistence setting key terminal_encoding value 'UTF-8'
2017-10-20 19:25 DEBUG task_queue task queue shutdown requested
2017-10-20 19:25 INFO ipc.rpyc server started on [127.0.0.1]:54212
2017-10-20 19:25 DEBUG task yggtorrent_1080p executing yggtorrent_1080p
2017-10-20 19:25 DEBUG template yggtorrent_1080p Merging template transmission into task yggtorrent_1080p
2017-10-20 19:25 DEBUG template yggtorrent_1080p Merging template global into task yggtorrent_1080p
2017-10-20 19:25 DEBUG urlrewrite yggtorrent_1080p Added rewrite yggtorrent
2017-10-20 19:25 DEBUG formlogin yggtorrent_1080p Exception posting login form.
Traceback (most recent call last):
File "/opt/rh/python27/root/usr/lib64/python2.7/site-packages/flexget/plugins/operate/formlogin.py", line 66, in on_task_start
br.open(url)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/mechanize/_mechanize.py", line 254, in open
return self.mechopen(url_or_request, data, timeout=timeout)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/mechanize/_mechanize.py", line 310, in mechopen
raise response
httperror_seek_wrapper: HTTP Error 403: Forbidden
2017-10-20 19:25 CRITICAL formlogin yggtorrent_1080p Unable to post login form
2017-10-20 19:25 WARNING task yggtorrent_1080p Aborting task (plugin: form)
2017-10-20 19:25 DEBUG task_queue task yggtorrent_1080p aborted: TaskAbort(reason=Unable to post login form, silent=False)
2017-10-20 19:25 DEBUG task_queue task queue shut down
2017-10-20 19:25 INFO ipc.rpyc listener closed
2017-10-20 19:25 INFO ipc.rpyc server has terminated
2017-10-20 19:25 DEBUG util.simple_persistence Flushing simple persistence for task None to db.
2017-10-20 19:25 DEBUG manager Shutting down
2017-10-20 19:25 DEBUG manager Removed /home/chris/.flexget/.config-TEST-lock

Can you help me ?

Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 837

Trending Articles