roed314 / seminars

Listing of online math seminars
GNU Affero General Public License v3.0
41 stars 15 forks source link

Add JSON retrieval #11

Closed kedlaya closed 4 years ago

kedlaya commented 4 years ago

It would be useful to extract data via an RSS feed, in order to make a front end. More precisely, I'd like to be able to search by:

and get back:

MaxAVF commented 4 years ago

I also think this would be a great feature, I was thinking about using the rss feed to create a Twitter bot that would tweet about upcomings seminars/talks.

kedlaya commented 4 years ago

I should add: MathMeetings also provides an API with options to retrieve JSON or XML in addition to RSS. I'd be satisfied with any of them.

edgarcosta commented 4 years ago

@kedlaya, would a single JSON with all the talks (in the specified range) would sufficient?

kedlaya commented 4 years ago

Absolutely yes!

edgarcosta commented 4 years ago

@kedlaya try it out: https://master.mathseminars.org/seminar/UCSD_NTS/json https://master.mathseminars.org/seminar/UCSD_NTS/json?past= https://master.mathseminars.org/seminar/UCSD_NTS/json?future= https://master.mathseminars.org/seminar/UCSD_NTS/json?daterange=April%2021,%202020%20-%20May%205,%202020

kedlaya commented 4 years ago

Here's what I did with it: https://kskedlaya.org/nts.cgi

In my wish list, I appear to have forgotten speaker affiliation.

MaxAVF commented 4 years ago

There is a json file for every seminar group? or there is a way to get a json with the data of all the seminars?

edgarcosta commented 4 years ago

@kedlaya, I have added a speaker affiliation and homepage. Also, can you share your code? as a cgi version is much better than an embeddable schedule

@MaxAVF, tell me what you want, and I see what I can do about it, at the moment, I don't really want to write a full API.

MaxAVF commented 4 years ago

@edgarcosta Having a json file (json, xml, whatever) with the info of all the talks, so I dont thave to search though all the pages to collect small json files.

kedlaya commented 4 years ago

One more field I just realized I want: link to the speaker's slides.

AndrewVSutherland commented 4 years ago

@kedlaya In addition to the slides_link column, there is a paper_link and a video_link (for the recorded video not the livestream), which you might conceivable want. You can see all three on

https://mathseminars.org/talk/vantage/8/

for example.

roed314 commented 4 years ago

I am working on this as part of #96.

tornaria commented 4 years ago

@kedlaya In addition to the slides_link column, there is a paper_link and a video_link (for the recorded video not the livestream), which you might conceivable want.

I think those three are all I would be missing in switching from embedded schedules (as in #104) to creating my own schedule using json data.

Maybe two more:

edgarcosta commented 4 years ago

While we don't have a full API, we now return:

[
        'speaker',
        'video_link',
        'slides_link',
        'title',
        'room',
        'comments',
        'abstract',
        'start_time',
        'end_time',
        'speaker_affiliation',
        'speaker_homepage',
        'language',
        'deleted',
        'paper_link',
        'stream_link',
    ]
kedlaya commented 4 years ago

Thanks. I'm now using 'paper_link' and 'slides_link' to create links on my page, and also 'comments' to determine whether or not to list a pre-talk.

roed314 commented 4 years ago

@MaxAVF There is now more of an API at researchseminars.org/api. I'm closing this issue in favor of tracking things further at #96.