Copy events from the Timely event plugin to the Tribe event plugin
Pulls the info from the old Timely event calendar plugin from the database directly. Then creates json to POST to an endpoint. The endpoint will consume the json and create a new event/venue/organizer, respectively, in the new Tribe event calendar plugin.
This uses Python3 to connect to the database and send the POST data. Php is running on the endpoint as a wordpress page template. This could be done by POSTing to the file directly as well.
I used a dump of the production database on my local machine. You could query the DB remotely, but doing it local was quicker and didn't have to have the user/pass info for the remote DB
pip3 install requests
pip3 install simplejson
pip3 install mysqlclient
- add the .sql to your local XAMPP/MAMPP db
mysql --user=yourmysqlusername --password=yourmysqlpassword --host=localhost thedatabasename < thedumpfile.sql
move-events-endpoint.php
should be place in your themes directory on your remote server, dev or staging preffered
~$ python3 move_events.py