News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

python-simplemachines

Started by bithon, April 19, 2019, 10:31:58 AM

Previous topic - Next topic

bithon

Hello!

I have a non public SMF and I had the need for some automated posts from 3rd party systems written in python.

So i wrote this small python module to send a new_topic to a simplemachines forum:
h**ps://github.com/bithon/python-simplemachinesforum

Best regards,
Bithon

PS. I am not allowed to post external links, i hope this way is ok?

vbgamer45

Nice, links are allowed after you post a certain number of times done to cut down on link spammers.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

bithon

thanks! :)

so i have to spam with posts before i can post my link :D (trying my best)

Aleksi "Lex" Kilpinen

No, not spam - but interact with other users on the forum, preferably by taking part in some meaningful discussions like support topics.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

bithon

Quote from: Aleksi "Lex" Kilpinen on April 20, 2019, 02:28:42 AM
No, not spam - but interact with other users on the forum, preferably by taking part in some meaningful discussions like support topics.

Yes, it was a joke :)

I asked a mod to change the link in OP, it seems i am not able to change the post if its to old.

njtweb

What does this mean? Sounds like RSS auto-poster?

bithon

Quote from: njtweb on April 20, 2019, 04:55:40 PM
What does this mean? Sounds like RSS auto-poster?
It is a library / package / module that you can use if you are a python developer, then you can create a new topic on a remote SMF with this lines of code:
from simplemachinesforum.simplemachinesforum import SimpleMachinesForum

smf_url = "https://www.any-simplemachinesforum.com"
smf_user = "user_name"
smf_pass = "password"
smf = SimpleMachinesForum(smf_url, smf_user, smf_pass)

# 1 = board id:
smf.new_topic(1, "subject", "This is the message to post!")

Advertisement: