photools.com Community

IMatch Discussion Boards => IMatch Scripting and Apps => Topic started by: dcb on March 29, 2024, 07:23:40 AM

Title: IMatch-Python-API
Post by: dcb on March 29, 2024, 07:23:40 AM
I'm pleased to be able to share my IMatch-Python-API code on github. It's a Python class that wraps calls to a limited set of API functions (those I need) and has the script I'm now using to upload from IMatch to pixelfed.

https://github.com/quantumgardener/IMatch-Python-API

A flickr script will be added in the future.
Title: Re: IMatch-Python-API
Post by: thrinn on March 29, 2024, 09:27:55 AM
Very interesting! Thanks for sharing!
Title: Re: IMatch-Python-API
Post by: Ger on March 29, 2024, 09:55:29 AM
Same here. Very much interested to follow and maybe use!

Ger
Title: Re: IMatch-Python-API
Post by: Mario on March 29, 2024, 01:21:11 PM
Thanks for sharing :)
Title: Re: IMatch-Python-API
Post by: Jingo on March 30, 2024, 12:41:59 PM
Always great to see folks developing stuff for IMatch scripting!  Appreciated...
Title: Re: IMatch-Python-API
Post by: dcb on April 01, 2024, 11:53:16 AM
flickr code is up. Uploads only but I have prepped for it to at least be able to tell me of differences, if not fix them.

Odd issue with tags. flickr is pulling in hierarchical keywords badly as tags so I'm deleting them, but they come back.

For now at least, it does 99% of what I need so that's a big time saver.
Title: Re: IMatch-Python-API
Post by: dcb on April 06, 2024, 07:51:44 AM
After 2 days and a massive rewrite, I've renamed the repository as "IMatch-to-Socials". The old name is a bit deceptive and could lead people to think it's a full IMatch API wrapper for Python and that's not the case.

The old link at the top of the thread redirects. New link is https://github.com/quantumgardener/IMatch-to-Socials

The code has been almost rewritten from the ground up and makes much better use of Python's object-oriented features and self-referencing.

Still to do updating/replacing, but the changes I've just made will make that much easier.
Title: Re: IMatch-Python-API
Post by: dcb on May 04, 2024, 09:41:53 AM
Finally got this beast finished - at least before I start on Facebook and Instagram automation :D .

Title: Re: IMatch-Python-API
Post by: Mario on May 04, 2024, 10:09:06 AM
Very neat! Thanks for sharing :)
Title: Re: IMatch-Python-API
Post by: sinus on May 04, 2024, 10:20:24 AM
Quote from: dcb on May 04, 2024, 09:41:53 AMFinally got this beast finished - at least before I start on Facebook and Instagram automation :D .

  • Full documentation at https://quantumgardener.info/notes/imatch-to-socials
  • Code at https://github.com/quantumgardener/IMatch-to-Socials


Without understandig a lot of your stuff, I am impressed.
A lot of work and I guess, it works very good.
And what I like very much is your detailled documentaion.

Thanks a lot for sharing. :D
Title: Re: IMatch-Python-API
Post by: Jingo on May 04, 2024, 01:50:50 PM
Agree.. this is some great stuff here... thx for sharing! 

As an aside - it doesn't seem like you can - but can Pixelfed be self hosted but on a shared hosting platform?  Appears you need a dedicated server with root access for setup..  always on the lookout for a new photo gallery app that uses PHP and can be self hosted with my shared hosting platform.
Title: Re: IMatch-Python-API
Post by: dcb on May 05, 2024, 08:55:04 AM
Quote from: Jingo on May 04, 2024, 01:50:50 PMAgree.. this is some great stuff here... thx for sharing!

As an aside - it doesn't seem like you can - but can Pixelfed be self hosted but on a shared hosting platform?  Appears you need a dedicated server with root access for setup..  always on the lookout for a new photo gallery app that uses PHP and can be self hosted with my shared hosting platform.
Take a look at shared hosting for Mastodon. That would be your best bet to find a way. I looked at that in the past out of interest and it was way too complex for me. Self-hosted will have plenty of help. Self-hosted on shared, shrug.
Title: Re: IMatch-Python-API
Post by: Jingo on May 06, 2024, 02:49:19 PM
Thanks... I saw the self-hosting (local) instructions which were complex but still not too bad but could not find anything for shared hosting (online) so perhaps this just isn't an option.  Thx again!