Open uncovery opened 8 years ago
Hi, thanks for taking time to looking into this, I've been really busy with work recently so I haven't been able to myself.
This is a good feature we can use, we can use this in two ways:
1) Monitor a page that shares other people's events, like the Hong Kong Gig Guide Or 2) Monitor a page or pages that exclusively publish their events, like Underground HK and The Wanch, and various band pages/ events companies.
Since these pages' motivation is to promote their show, there is no danger of sharing private events. If the events were private, that would defeat the purpose.
If we integrate this feature, our course of action would be:
1) Create an algorithm to monitor the page for events 2) Create a function to export the event as an iCal event 3) Create an algorithm to search for keywords like "Doors", "Price", "Tickets" etc. 4) Create a function to parse date, Time, Location and title text 5) Create a function to concat this information into strings 6) Create a function that will create a Google calendar event using the data and time data (php?) 7) Create a function that will import the strings into the Title, Date and description fields of the Google Calendar field. 8) Save the event
IFTTT will handle the rest. If we get this underway, we can K.O. the project in one.
I will try to take a look at these tasks, but I am very new to using APIs and have only written one php script before, so I dont expect I will be able to hack it very quickly. On top of that my deadlines at work have piled up, I should be more free after January.
Are you in Hong Kong? Maybe we can grab a bite sometime.
Thanks, Pointofgravity
Sent from my Huawei Mobile
What you propose on the top is tricky. Whats your proposal to monitor and then and then export them automatically?
The topic regarding "private" events is a misunderstanding. I meant: If you want to use the webcal:// format file, it will automatically contain all the events you personally subscribed to. If you auto-import those to the target calendar, your other, personal, private events are in the same file.
the top 2 monitor parts are the hardest. once we have an ical file, the rest is easy in PHP.
Yes, I am in HKG, sure we can have a drink or the like sometime.
We could check the page for events posted in the last x hours, that's how the sidebar updates.
Sent from my Huawei Mobile
-------- Original Message -------- Subject: Re: [pointofgravity/HKMGigAnnouncements] Export Facebook to Google Calendar (#4) From: Uncovery To: pointofgravity/HKMGigAnnouncements CC: pointofgravity ,Comment
What you propose on the top is tricky. Whats your proposal to monitor and then and then export them automatically?
The topic regarding "private" events is a misunderstanding. I meant: If you want to use the webcal:// format file, it will automatically contain all the events you personally subscribed to. If you auto-import those to the target calendar, your other, personal, private events are in the same file.
the top 2 monitor parts are the hardest. once we have an ical file, the rest is easy in PHP.
Yes, I am in HKG, sure we can have a drink or the like sometime.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/pointofgravity/HKMGigAnnouncements/issues/4#issuecomment-257899038, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKZvmGBIPnHbZyobrSgl_gP7ilA8TcQ1ks5q6KuPgaJpZM4Km29L.
Hey,
I've had some time to check your options out, it seems like the first option is the best one. Now we just need a way to check a facebook page for events published in the last x hours. I have added the google script that I use for updating the subreddit sidebar (HKM_Reddit_Sidebar.gs) to the repo, it uses a similar mechanic to check for new events from the google calendar every four hours. Perhaps we can use similar code from that.
So I found out more about how the mechanics of the facebook events work. Unfortunately, there does not seem to be an easy way to automate stuff 100%.
So from my perspective, it's not possible to automatically get events from facebook. The most automated solution would be to manually copy/paste/save the HTML of every single event from facebook into a parser and then have it automatically transferred to a database/ical.
However, I do not think it's realistic to permanently do that, week after week.
Hey man,
Don't worry about the Facebook events thing then, I think it's not a priority. We can do something a bit easier, like using the email from the underground.
Sent from my Huawei Mobile
-------- Original Message -------- Subject: Re: [pointofgravity/HKMGigAnnouncements] Export Facebook to Google Calendar (#4) From: Uncovery To: pointofgravity/HKMGigAnnouncements CC: pointofgravity ,Comment
So I found out more about how the mechanics of the facebook events work. Unfortunately, there does not seem to be an easy way to automate stuff 100%.
So from my perspective, it's not possible to automatically get events from facebook. The most automated solution would be to manually copy/paste/save the HTML of every single event from facebook into a parser and then have it automatically transferred to a database/ical.
However, I do not think it's realistic to permanently do that, week after week.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/pointofgravity/HKMGigAnnouncements/issues/4#issuecomment-270827253, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKZvmCDmT5MyITATe4nTFvcQcm8RRZziks5rPb7pgaJpZM4Km29L.
Yeah it's just really a pity since more and more bands a creating FB events and it would be a common format to work with. The newsletter from the underground can look different each time and it's manual work again.
Do you want to go through this over a beer some time? I think we need to rethink the whole thing.b
Sent from my Huawei Mobile
-------- Original Message -------- Subject: Re: [pointofgravity/HKMGigAnnouncements] Export Facebook to Google Calendar (#4) From: Uncovery To: pointofgravity/HKMGigAnnouncements CC: pointofgravity ,Comment
Yeah it's just really a pity since more and more bands a creating FB events and it would be a common format to work with. The newsletter from the underground can look different each time and it's manual work again.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/pointofgravity/HKMGigAnnouncements/issues/4#issuecomment-270836406, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKZvmCI-H8L_eZV-RhFh5lBTlRP7hO4Mks5rPdUogaJpZM4Km29L.
Yeah that sounds like a good idea. I am right now a bit on a dead end with this. Either we find a completely new way how to automate this stuff or we drop the project as a whole. Another angle is that I do not speak cantonese and I suspect that there is a whole huge amount of info in Cantonese out there that I don't even know about. I'll send you a reddit PM.
Hey dude, are you here? Can't get a hold of you man.
Sent from my Huawei Mobile
-------- Original Message -------- Subject: Re: [pointofgravity/HKMGigAnnouncements] Export Facebook to Google Calendar (#4) From: Uncovery To: pointofgravity/HKMGigAnnouncements CC: pointofgravity ,Comment
Yeah that sounds like a good idea. I am right now a bit on a dead end with this. Either we find a completely new way how to automate this stuff or we drop the project as a whole. Another angle is that I do not speak cantonese and I suspect that there is a whole huge amount of info in Cantonese out there that I don't even know about. I'll send you a reddit PM.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/pointofgravity/HKMGigAnnouncements/issues/4#issuecomment-270837317, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKZvmFvCkccRwiMfweZZyPIzFBkGXx71ks5rPdcfgaJpZM4Km29L.
Hi man,
Hope you're doing well. I think I have found a way to automate this. The downside is that we are only going to be able to automate it from one source, which is the The Underground newsletter.
The Underground newsletter's gig listing always begins under the header: 未來2星期的現場音樂演出 Live Music Shows Happening In The Next Two Weeks
If we could subscribe this newsletter to an e-mail account, could we parse the information on there? From then on, the format is pretty consistent: Date, Location, Time, Bands and Price. What I think is handy still is that there are clear markers for these pieces of information. I am still insistent on using the Google Calendar format; Since taking ownership of the Hong Kong Gig Guide, I have changed from Facebook Notes format to using this format to display gig dates, it is convenient and users can see live changes better.
I have found an integration tool called Zapier that can allow me to create a google sheet, define columns that are input into different text box fields in a google calendar:
Using this method, we can finally automate updating the Hong Kong Gig Guide calendar. It is a shame that smaller events not listed in The Underground's newsletter will not be included, but I think that the newsletter is pretty comprehensive already. The only issue I can think of is that if I already added an event before (for example, Clockenflap is announced and I input it into the calendar) and then the newsletter gets released (it is out every two weeks and only includes events happening in the next two weeks) then when the zapier app updates, we will get two of the same events, so it may need some manual maintenance after all.
So in conclusion, I think the only thing I need now is parsing the information from the newsletter and then entering it into this spreadsheet: https://docs.google.com/spreadsheets/d/1iauJpFSXXk9NU2yM1Mt87dw1AWPtOeLwef25Is6fVy8/edit?usp=sharing Then, the zapier app will take care of the rest. I also have an issue further on about how I currently have a bot posting to the subreddit every time an event is added to the calendar, but I think I will tackle that later on, I think this should take more priority for now.
Did you look at this here? https://parser.zapier.com/ This actually takes emails as a data source for zapier.
by the way, are you aware about this page? http://timable.com/music
Hi, yes sorry I didn't reply for so long. I'll look in to the parser zap, thanks for the pointer, and yes I'm aware of the timable calendar.
Hi, I have seen you created a project for this. There is a way to do this by simply exporting all your events automatically as a iCal file or by exporting a single event.
When you open any event, there is the [...] icon on the top right. In that menu, there is a "Export Event". From here, there are 2 options:
I tried to auto-download the file via PHP and so far failed. we might need to download it manually each time and upload it to the system.