Advertisement:

Author Topic: python-simplemachines  (Read 1260 times)

Offline bithon

  • Newbie
  • *
  • Posts: 4
python-simplemachines
« on: April 19, 2019, 10:31:58 AM »
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?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,496
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: python-simplemachines
« Reply #1 on: April 19, 2019, 12:43:14 PM »
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

Offline bithon

  • Newbie
  • *
  • Posts: 4
Re: python-simplemachines
« Reply #2 on: April 19, 2019, 06:41:53 PM »
thanks! :)

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

Online Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 18,540
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • There's No Place Like 127.0.0.1
Re: python-simplemachines
« Reply #3 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.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.
  Fooling around with an i7 990X @ 3,47Ghz / 12Gb / Win 10 x64 / 3840x2160


How you can help SMF

"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

Offline bithon

  • Newbie
  • *
  • Posts: 4
Re: python-simplemachines
« Reply #4 on: April 20, 2019, 05:15:06 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.

Offline njtweb

  • Sr. Member
  • ****
  • Posts: 916
Re: python-simplemachines
« Reply #5 on: April 20, 2019, 04:55:40 PM »
What does this mean? Sounds like RSS auto-poster?

Offline bithon

  • Newbie
  • *
  • Posts: 4
Re: python-simplemachines
« Reply #6 on: April 21, 2019, 01:21:34 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:
Code: [Select]
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!")