Creating multiple Eventbrite events using a CSV

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Creating multiple Eventbrite events using a CSV

by runawaymacros on Tue Feb 06, 2018 8:57 pm

Hi all,

I'm trying to create multiple Eventbrite events using a CSV file of my locations, dates and ticket types. Everything is working quite well except for the date.

The tag id changes each time you're creating a new event, so I thought I would try using a direct click instead. The direct click works for the FIRST run through of the macro, but on the second loop it fails. The code below works once but when trying to create a second event I receive <i>Error -1300: Cannot find HTML element of type "A:" with attribute(s) "TXT:21".. Line 19: TAG POS=1 TYPE=A ATTR=TXT:{{!COL7}}</i>

Note also that I do not know the id as I am creating new events and it is generating that tag id, so I couldn't put that in the CSV file. Also the id is not related to the eventid that is created by Eventbrite. All I need to do is click on the calendar to have the popup open and then set the date to a number, say 21. It works once which makes it all the more frustrating!

Code: Select all
DS CMD=LDOWN X=164 Y=323 CONTENT=
DS CMD=LUP X=164 Y=323 CONTENT=
TAG POS=1 TYPE=A ATTR=TXT:{{!COL7}}
DS CMD=LDOWN X=438 Y=323 CONTENT=
DS CMD=LUP X=438 Y=323 CONTENT=
TAG POS=1 TYPE=A ATTR=TXT:{{!COL9}}


For reference, here is the complete code
Code: Select all
VERSION BUILD=12.0.501.6698
TAB T=1
TAB CLOSEALLOTHERS
'SET !PLAYBACKDELAY 0.00
SET !DATASOURCE C:\Users\user\Downloads\Events.csv
SET !LOOP 2
SET !DATASOURCE_LINE {{!LOOP}}
'SIZE X=1034 Y=589
URL GOTO=https://www.eventbrite.com/edit?clone=1&eid=42921684915
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:group-details-name CONTENT={{!COL1}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-location-edit-venue<SP>l-mar-top-1 CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-location-edit-address_1<SP>l-mar-top-1<SP>js-xd-cep-street CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-location-edit-city<SP>l-mar-top-1<SP>js-xd-cep-city CONTENT={{!COL4}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-location-edit-state<SP>l-mar-top-1<SP>js-xd-cep-state CONTENT={{!COL5}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-location-edit-postal_code<SP>l-mar-top-1<SP>js-xd-cep-input CONTENT={{!COL6}}
TAG POS=1 TYPE=SELECT ATTR=CLASS:js-d-select-box<SP>js-location-edit-country CONTENT=%CA
DS CMD=LDOWN X=164 Y=323 CONTENT=
DS CMD=LUP X=164 Y=323 CONTENT=
TAG POS=1 TYPE=A ATTR=TXT:{{!COL7}}
DS CMD=LDOWN X=438 Y=323 CONTENT=
DS CMD=LUP X=438 Y=323 CONTENT=
TAG POS=1 TYPE=A ATTR=TXT:{{!COL9}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=CLASS:js-dtp-timepicker-input<SP>time<SP>form__input--xshort<SP>js-timepicker-input CONTENT={{!COL8}}
TAG POS=2 TYPE=INPUT:TEXT ATTR=CLASS:js-dtp-timepicker-input<SP>time<SP>form__input--xshort<SP>js-timepicker-input CONTENT={{!COL10}}
TAG POS=1 TYPE=INPUT:TEXT ATTR=NAME:group-tickets-0-quantity_total CONTENT={{!COL11}}
TAG POS=2 TYPE=INPUT:RADIO ATTR=NAME:group-privacy_and_promotion-listed
'WAIT SECONDS=6
'TAG POS=1 TYPE=A ATTR=TXT:Make<SP>Your<SP>Event<SP>Live
TAG POS=5 TYPE=A ATTR=TXT:Save
WAIT SECONDS=10


Any help would be greatly appreciated as this is the ONLY thing I need to get this going and I have 200 events to create so this would be incredibly helpful! I really don't want to brute force it. I have searched high and low and cannot find a solution on this forum!
runawaymacros
 
Posts: 1
Joined: Tue Feb 06, 2018 8:47 pm

Return to General Support & Discussions

Who is online

Users browsing this forum: No registered users and 13 guests

-->