Code Monkey home page Code Monkey logo

bulk-downloader-for-reddit-x's Introduction


bulk-downloader-for-reddit-x's People

Contributors

abgd1234 avatar ailothaen avatar aliparlakci avatar blipranger avatar boo1098 avatar botts85 avatar bunny-foofoo avatar chapmanjacobd avatar comradeecho avatar creepler13 avatar danclowry avatar dbanon87 avatar deepsourcebot avatar dunefox avatar ekriirke avatar elipsitz avatar jrwren avatar omegarazer avatar phaserush avatar r-pufky avatar serene-arc avatar shinji257 avatar sinclairkosh avatar soulsuck24 avatar st-korn avatar stared avatar thayol avatar thomas694 avatar vladdoster avatar zapperdj avatar

Stargazers

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

Watchers

 avatar

bulk-downloader-for-reddit-x's Issues

[Bug]: prawcore.exceptions.ResponseException: received 401 HTTP response

Has your issue been fixed on the master branch?

  • Have you read the Opening an issue
  • Have you checked if your issue still exists on the master branch? See here for instructions to install the development branch.

The Bug

Running BDFRx with this command:

# Your BDFRx command here

Causes this error:

# The last lines of your log file here

But it should...

BDFRx version

You are currently using v1.0.9 the latest is v1.0.9

Python version

Python 3.11.1

OS type

osx

Extra Info

I registered a custom client_id with a redirect url of "http://localhost:7634" without a trailing slash, and put it in my config file:

client_id = pR...iA

I launch with this command line

bdfrx download bdfrx-auth --user me --saved --authenticate -L 1001 --file-scheme "{POSTID}"

I get a URL to login:

https://www.reddit.com/api/v1/authorize...

This would just spin after I login, I guess a problem with new.reddit, but if I replaced "www.reddit.com" with "old.reddit.com" then I would finally get redirected to "http://localhost:7634"

But when my browser redirects to that localhost URL, I get a crash message in bdfrx


  File "/Users/devon/.local/bin/bdfrx", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/bdfrx/__main__.py", line 117, in cli_download
    reddit_downloader = RedditDownloader(config, [stream])
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/bdfrx/downloader.py", line 40, in __init__
    super().__init__(args, logging_handlers)
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/bdfrx/connector.py", line 63, in __init__
    self._setup_internal_objects()
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/bdfrx/connector.py", line 80, in _setup_internal_objects
    self.create_reddit_instance()
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/bdfrx/connector.py", line 156, in create_reddit_instance
    token = oauth2_authenticator.retrieve_new_token()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/bdfrx/oauth2.py", line 73, in retrieve_new_token
    refresh_token = reddit.auth.authorize(params["code"])
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/praw/models/auth.py", line 54, in authorize
    authorizer.authorize(code)
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/prawcore/auth.py", line 242, in authorize
    self._request_token(
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/prawcore/auth.py", line 155, in _request_token
    response = self._authenticator._post(url, **data)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/devon/.local/pipx/venvs/bdfrx/lib/python3.11/site-packages/prawcore/auth.py", line 38, in _post
    raise ResponseException(response)
prawcore.exceptions.ResponseException: received 401 HTTP response

I have been able to use google and the READMEs to get past my previous errors but have stalled here. I find answers saying I am not really logged in.

Ruff coverage

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.