Skip to main content

Search

Items tagged with: python


My question is pretty simple. I want to create my own social media based on activitypub for learning purposes.

I usually prefer C or Python for programming languages, even though I'm not an expert.

The question is, would someone create a list or to-do list? What should I do?

#C #Python #ActivityPub #programming #askfediverse #askfedi


I think I finally got my Instagram scraper script working well. It grabs the latest post from an IG account and shares it to my GoToSocial instance. It marks the post ID so it doesn't share the same post twice. However, the problem is pinned posts. Those will always be the top post on the account, breaking the functionality of the script.

The instaloader python module can't handle pinned posts anymore because IG removed the 'pinned_for_users' value from the post metadata. So instead I have it set up to skip the top 3 posts, which is the max number of pinned posts on IG. So it just grabs the newest post after the first 3. This works for Sleep Token because they generally always have 3 pinned posts, but for accounts that only have 1 or 2 pinned posts, it will skip 1 or 2 non-pinned posts.

I'm not sure how to handle this better. If anyone has any ideas, I'm open to suggestions.

#python #scripting #AskFedi


If you run a Mastodon server you probably already know about some of the existing tools for collectively managed domain blocks.

As an alternative, I created a simple Python script that lets you copy public domain blocks from servers you trust for an easy import.

stefanbohacek.com/project/mast…

Keeping your community safe should be a number one priority!

#fediverse #FediAdmin #mastodon #MastoAdmin #DomainBlocks #safety #community #python #opensource



A malicious #Python package named 'fabrice' has been present in the Python Package Index (#PyPI) since 2021, stealing Amazon Web Services credentials from unsuspecting developers. #CyberSecurity #infosec
bleepingcomputer.com/news/secu…

⇧