Giter VIP home page Giter VIP logo

python-substack's Introduction

I was thinking about the end of the day, and I realized something strange, man.

The World's End is right there in Newsbury, Berkshire!

Like, it's not even hiding, man. It's just chillin' in plain sight, waiting for us to notice.

That's some sneaky world-ending right there!!!! 🤯🤯🤯🤯

Fantasy Premier League Datasets ⚽ ⚽ ⚽

FPL 24/25

FPL 23/24

FPL 22/23

github contribution grid snake animation

python-substack's People

Contributors

dacx avatar dependabot[bot] avatar ma00 avatar ma2za avatar patricker avatar shernshiou avatar suhan1996 avatar

Stargazers

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

Watchers

 avatar  avatar

python-substack's Issues

Get subscribers (count)

Hi there,

would you care about adding some analytical information to the package? For example, the current subscribers and the overall subscriber count? It's available at /api/v1/publication_launch_checklist. I'd be happy to open a PR if that's cool with you.

Cheers!

Exception types not subclassing a single SubstackException

All the library's exceptions inherit directly from Python's Exception which prevents from catching them in one go (exclusive of any other kind of exception) : one has to list explicitly each of these exception classes in one's exceptclause. Also, if some day another exception type is added by the library, it will escape this try...except piece of code.

This is not a bug, but an enhancement: having all substack exception types subclass a SubstackException(itself suclassing Exception) would make it easier for client code.

APIError(code=400): Invalid value

Hi, thank you for your work. I am running examples/publish_post.py with the default draft.yaml but receive substack.exceptions.SubstackAPIException: APIError(code=400): Invalid value.

May I know how I can fix it please?

Requests

It seems like you should use Requests when dealing with URLs. No?

Paywall not activated on publishing

I've tested that the paywall is correctly added to the body with this line in .yml file
type: "paywall"
however the paywall is not activated when published.

I believe there are extra options to activate the paywall

images inside body

Hi, cool project.
Any suggestion on how to include images in the body?

"send_paywalled_preview" value is missing

          Great!

One thing for it to work:
"send_paywalled_preview" value is missing, so currently there's no emails sent out to non-paid members if the paywall is added, which is essentially the main reason for this feature (send preview version to non-paid members).

Originally posted by @suhan1996 in #22 (comment)

Captcha error when logging in

Hi,

I cannot login anymore from the python API, because if this:

substack.exceptions.SubstackAPIException: APIError(code=401): Please complete the captcha to continue

I don't have any captcha when logging with username et password from a browser, so I guess this API is detected as a potential bot (well it is but...)

My profile has no USER_ID?

My profile page doesn't have a URL of the format shown in the README. It says:

go to your public profile page, in the URL bar of the browser you find the substack address followed by your USER_ID and your username: https://substack.com/profile/[USER_ID]-[username]

But my profile isn't under /profile, and it's just my username, prefaced by an ampersand:

https://substack.com/@danbgoldman

How can I find my user id?

Complete/bypass captcha

Hi, I am testing my code and have repeatedly logged into my Substack account via the API, and it has resulted in SubstackAPIException: APIError(code=401): Please complete the captcha to continue. How can I complete the captcha (either manually or bypass)?

Thank you so much for your contribution on this package.

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.