Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Error: Unauthorized for url: http://www.omdbapi.com/?t=Kurenai+no+buta+AKA+Porco+Rosso&y=1992&page=1&plot=short&tomatoes=False #34

Open
suleman9254 opened this issue Mar 29, 2021 · 0 comments

Comments

@suleman9254
Copy link

suleman9254 commented Mar 29, 2021

I get many errors when i try to use flinck. I've included those below. My intuition is that this is because the omdb api is not included in the url http://www.omdbapi.com/?t=Kurenai+no+buta+AKA+Porco+Rosso&y=1992&page=1&plot=short&tomatoes=False because when I visit it, I get a "No api key provided".
Traceback (most recent call last): File "C:\Users\Suleman\AppData\Local\Programs\Python\Python38-32\Scripts\flinck-script.py", line 11, in <module> load_entry_point('flinck==0.3.2', 'console_scripts', 'flinck')() File "c:\users\suleman\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 829, in __call__ return self.main(*args, **kwargs) File "c:\users\suleman\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 782, in main rv = self.invoke(ctx) File "c:\users\suleman\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "c:\users\suleman\appdata\local\programs\python\python38-32\lib\site-packages\click\core.py", line 610, in invoke return callback(*args, **kwargs) File "c:\users\suleman\appdata\local\programs\python\python38-32\lib\site-packages\flinck\__init__.py", line 87, in flinck_cli item = brain.search_filename(fpath, by) File "c:\users\suleman\appdata\local\programs\python\python38-32\lib\site-packages\flinck\brain.py", line 141, in search_filename item = search_by(title, year, fields) File "c:\users\suleman\appdata\local\programs\python\python38-32\lib\site-packages\flinck\brain.py", line 113, in search_by item = omdb.get(**query) File "c:\users\suleman\appdata\local\programs\python\python38-32\lib\site-packages\omdb\api.py", line 23, in get return _client.get(**params) File "c:\users\suleman\appdata\local\programs\python\python38-32\lib\site-packages\omdb\client.py", line 106, in get data = self.request(timeout=timeout, **params).json() File "c:\users\suleman\appdata\local\programs\python\python38-32\lib\site-packages\omdb\client.py", line 55, in request res.raise_for_status() File "c:\users\suleman\appdata\local\programs\python\python38-32\lib\site-packages\requests\models.py", line 940, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: http://www.omdbapi.com/?t=Kurenai+no+buta+AKA+Porco+Rosso&y=1992&page=1&plot=short&tomatoes=False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant