Title: Create an event automatically with Python mechanize
Last modified: July 28, 2017

---

# Create an event automatically with Python mechanize

 *  Resolved [ryunos](https://wordpress.org/support/users/ryunos/)
 * (@ryunos)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/create-an-event-automatically-with-python-mechanize/)
 * Hello,
 * I am trying to write a Python script that would create events automatically. 
   I am using mechanize to do that. The strange thing is, when I try to publish 
   my event, I get an error page that I can’t seem to find when I try myself. The
   page is [http://mysite.com/wordpress/wp-admin/post.php?post=501&action=edit&message=10](http://mysite.com/wordpress/wp-admin/post.php?post=501&action=edit&message=10)
   
   It’s really strange because my event is in the drafts but was not published and
   when I try to publish it myself, it does not work.
 * Thank you for your help,
    Ryunos

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/create-an-event-automatically-with-python-mechanize/#post-9365964)
 * using pastebin.com – would it be possible to share the snippet you are using?
   although we are quite limited with regards to custom coding we can still check
   and give advice.
 *  Thread Starter [ryunos](https://wordpress.org/support/users/ryunos/)
 * (@ryunos)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/create-an-event-automatically-with-python-mechanize/#post-9366234)
 * Here is my code: [click](https://pastebin.com/hEHb3s46)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Create an event automatically with Python mechanize’ is closed to new
replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [python](https://wordpress.org/support/topic-tag/python/)

 * 2 replies
 * 2 participants
 * Last reply from: [ryunos](https://wordpress.org/support/users/ryunos/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/create-an-event-automatically-with-python-mechanize/#post-9366234)
 * Status: resolved