Skip to content

403 Client Error #3

Description

@fabaff

Using the module seems no longer be possible.

>>> import pocketcasts as pc
>>> api = pc.Api('the_username', 'the_passwrod')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/fab/Documents/repos/ha/home-assistant/lib64/python3.6/site-packages/pocketcasts/api.py", line 18, in __init__
    response.raise_for_status()
  File "/home/fab/Documents/repos/ha/home-assistant/lib64/python3.6/site-packages/requests/models.py", line 939, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://play.pocketcasts.com/users/sign_in

Activity

  1. fabaff commented on Aug 21, 2018

    @fabaff
    Author
  2. zackbcom commented on Feb 12, 2019

    @zackbcom
  3. zackbcom commented on Feb 12, 2019

    @zackbcom

    I'm able to leverage the new API. I will see if I can make a fork and get it updated.

  4. daltschu22 commented on Mar 9, 2019

    @daltschu22

    The fork works great, thanks so much! :)

  5. daltschu22 commented on Mar 9, 2019

    @daltschu22

    Spoke too soon! Broken for a few things, such as search:
    requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://play.pocketcasts.com/web/podcasts/search.json

  6. zackbcom commented on Mar 10, 2019

    @zackbcom

    I'll take a look at it this week. Sorry, been super busy!

  7. daltschu22 commented on Mar 16, 2019

    @daltschu22

    I got it work using a POST

            params = {'term': search}
            response = self._session.post(
                "https://api.pocketcasts.com/discover/search",
                headers=self._api_header,
                data=params
                )
            response.raise_for_status()
    
            podcasts = []
            for podcast_json in response.json()['podcasts']:
                podcasts.append(podcast_json)
    
            return podcasts
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions