friendica.produnis.de

77 Jahre alter Japaner malt Kunstwerke mit Microsoft Excel.

YouTube: The Michelangelo of Microsoft Excel (Great Big Story)



Joe Slam Friendica
@Friendica Developers
Dear Developers,

I would like to post a picture to my friendica account from a python script. I came along to https://bitbucket.org/tobiasd/python-friendica from the help pages.
It is described there, how to post a status message, but it seems to be all out-dated...

could anyone please give an example on how to upload and post a picture to friendica using python?
thx in advance
Joe
11 Kommentare mehr anzeigen
NOT TESTED

  1.  import requests
  2.  
  3.  url = "https://{}:{}@{}//api/statuses/update.xml".format(
  4.   USERNAME, PASSWORD, DOMAIN
  5.  )
  6.  
  7.  photo = open('image,jpg', 'rb')
  8.  
  9.  multipart_form_data = {
  10.   'media': photo,
  11.   #optionally
  12.   'source': "name of your app",
  13.   'status': "text of the post",
  14.   'title': "Title of the post",
  15.   'in_reply_to_status_id': 'id of the post to reply to (if this is a reply)',
  16.   'contact_allow': [ list of contacts id to set the post private to those contacts]
  17.  }
  18.  
  19.  requests.post(url, files=multipart_form_data)
Joe Slam Friendica
thanks for your script, it uploads and posts the picture without problem.
However, all other options, like "source", "title" and - most importantly - "status" are just ignored/empty/not posted.
I'm quite surprised it worked almost correctly at first try :-)

change it as
  1.  multipart_form_data = {
  2.  'media': photo,
  3.  }
  4.  
  5.  #optionally
  6.  params = {
  7.   'source': "name of your app",
  8.   'status': "text of the post",
  9.   'title': "Title of the post",
  10.   'in_reply_to_status_id': 'id of the post to reply to (if this is a reply)',
  11.   'contact_allow': [ list of contacts id to set the post private to those contacts]
  12.  }
  13.  
  14.  requests.post(url, params=params, files=multipart_form_data)
better :
  1.  requests.post(url, data=params, files=multipart_form_data)

Joe Slam Friendica

Super Mario Bros Meets Metal





@Music & Vinyl


Joe Slam Friendica
historyinpix
(1929). Sex education class. Look at the range of facial expressions.Bild/Foto


@funstuff
@nsfw

Joe Slam Friendica
Ich hab noch ein paar Feed-Schleudern erstellt, falls jemand Interesse hat:

@History in Pictures (inofficial) History in Pictures (Instagram)
@Neo Magazin Royal (inoffiziell) Neo Magazin Royal (Twitter/Instagram/Youtube)
@Methodisch Inkorrekt (inoffiziell) Methodisch Inkorrekt (Twitter/Youtube/RSS)


Joe Slam Friendica

That moment...

...when you realize that St. Nicholas was a klingon...




@funstuff
@Atheism

Joe Slam Friendica
Bild/Foto

This is how silly flat earthers look to me. #science

Tumblr: Holy Koolaid



@funstuff

Joe Slam Friendica
habe gerade ein tolles Laserschwert beim LIDL erstanden... :/



@funstuff
Anscheinend zündet das Plasma nicht korrekt. Hoffentlich ist wenigstens der Sound in Ordnung...

Joe Slam Friendica
Guten Tag, ich bin ein Testaccount für Youtube-HowTo-Videos.

Friendica - YouTube

Account erstellen... Kontakte hinzufügen... Kontakte in Gruppen sortieren......
...did some german howto-videos on creating account and adding contacts...

sind jetzt aber doch schon einige geworden....



friendica.produnis.de (directory)


(...bin aber alles ich...)



extra und allein und nur für @Yusuf Granate

@Die Sendung mit der Maus (inoffiziell)
Bild/Foto

Hier spiegel ich ab heute die Tweets der Maus.


Da fällt mir spontan die Geschichte mit der dunklen Materie ein...

YouTube: Dunkle Materie (Sendung mit der Maus 2011) (Joe Slam)

Sendung mit der Maus vom 04.12.2011 - Armin erklärt, was dunkle Materie ist.
@Die Sendung mit der Maus (inoffiziell)
39 Kommentare mehr anzeigen
Zum Hintergrund bezüglich SSL ohne eigene Domain: https://de.wikipedia.org/wiki/Server_Name_Indication
also das ist alles ziemlich komisch.
Meine accounts neo@ weed@ und minkorret@friendica.produnis.de sind von Diaspora aus erreichbar, die accounts urknall@ und maus@ nicht.
Alle Accounts haben die gleichen Einstellungen...
Naja,... in ein paar Tagen zieht mein Server um, dann sollte auch SSL gut funktionieren - aber daran scheint es nicht zu liegen...

Dampft hier jemand? / Are vapors here?


"No significant changes could be detected over the observation period from baseline in the EC users or between EC users and control subjects in any of the health outcomes investigated. Moreover, no pathological findings could be identified on HRCT of the lungs and no respiratory symptoms were consistently reported in the EC user group. Although it cannot be excluded that some harm may occur at later stages, this study did not demonstrate any health concerns associated with long-term use of EC in relatively young users who did not also smoke tobacco."

Health impact of E-cigarettes: a prospective 3.5-year study of regular daily users who have never smoked

Health impact of E-cigarettes: a prospective 3.5-year study of regular daily users who have never smoked
@SCIENCE & NATURE

how to mirror Instagram Posts

@Friendica Support

Dear Supporters,
I am follwing some Instagrams account using instatom, e.g. http://instatom.freelancis.net/s04

While this is working nice, I have a problem with mirroring these instatom/instagram posts.

If I select "mirror as own posts" or "mirror as forwarded posts", the feed will just stay empty. So, there are no posts, and the feed does not seem to update at all. Thus, nothing is "mirrored".

If I put it back to "do not mirror", everything works fine again, it will update and show all posts and images.

If I try to mirror instatom posts via IFTTT, on ifff.com RSS-feed states: "Feed has items without valid urls".
Is there another way to mirror Instagram posts with fotos?
7 Kommentare mehr anzeigen
IFTTT has a specific IF for Instagram posts.
yeah, but like facebook, it is only connected to your own account. I like to mirror foreign accounts...
Fabio Friendica
The w3c feed validator ( https://validator.w3.org/feed/ ) says that the first feed does not validate, while the second one yes :-)


@Ruhrpott

Eddis Durst und Wurst Express in Witten-Annen


Bei Eddi wird die Wurst noch mit’m Herzen gebraten

An ihrer Theke in Witten-Annen steht immer eine lange Schlange: Eddi und Detlef Berkenberg betreiben den berühmten „Durst & Wurst Express“.

Jemand ausm Ruhrpott hier?



...ist ein öffentliches Forum, welches Ruhrpott-Fotos von Instagram spiegelt:
https://www.instagram.com/ruhrpottblick/
https://www.instagram.com/ruhrpottroamers/

@Ruhrpott
neuer älter