lichess.org
Donate

Anyone do Computer programming and use the Lichess API?

Hello. I was trying to get a lichess API program to work. Was wondering if anyone has experience with lichess api. Specifically, I'm having some trouble with the "createdAT" perf. I'm trying to get the API to display games between a certain time period, and have been unable to do so. Help would be appreciated. Thank you!
> createdAT

It looks like it's milliseconds since Jan 1, 1970, if that helps. There are converters to deal with dates. You can search "epoch" as keyword with whatever programming language you are using.
@chessfan124 Thank you for that. I was able to convert stuff to milliseconds, I'm still not able to get only games from within those milliseconds :(. I'm using python. You can imagine my frustration. Do you know bland it is to look up and implement millisecond conversions for computer programming? That is some hardcore dry stuff man. I mean this stuff is so dry, I need to take several laxatives. And some people think that actually playing chess is heavy on the nerd side. LOL!
@AntiChesstLEGEND said in #3:
> @chessfan124 Thank you for that. I was able to convert stuff to milliseconds, I'm still not able to get only games from within those milliseconds :(. I'm using python. You can imagine my frustration. Do you know bland it is to look up and implement millisecond conversions for computer programming? That is some hardcore dry stuff man. I mean this stuff is so dry, I need to take several laxatives. And some people think that actually playing chess is heavy on the nerd side. LOL!

You should never do it yourself only use libraries.
@AntiChesstLEGEND said in #3:
> And some people think that actually playing chess is heavy on the nerd side. LOL!

Well only the higher rated players are nerds. Your rating indicates that you are actually popular and attractive, unlike us pimply nerds. But don't worry, we will allow you in our community.
@AntiChesstLEGEND said in #6:
> @AsDaGo I guess you didn't see the big ol gold trophy on my on my profile, indicating my unattractiveness.

Ah yes, my apologies. A specialist in antichess, rather than mainstream chess. WOW you must be ugly!
@chessfan124 Hello. Thanks for checking in. I was able to use the millisecond time thingy. But the program still does not return games from within those milliseconds, so there must be something wrong with my use of the API.

GPT 4 eh? I have been extremely strongly dissuaded against using gpt for coding, even shamed. So you're saying it's good, eh? I have used gpt, but it seems good only at writing a single block of code. Give it multiple instructions, and you're screwed.
@AntiChesstLEGEND said in #9:
> I have used gpt, but it seems good only at writing a single block of code. Give it multiple instructions, and you're screwed.

I'm not talking about the vanilla GPT which is probably ChatGPT 3.5. I'm talking about GPT-4+ where the + means that it has a plugin. The plugin is called "Code Interpreter". You might need to beg OpenAI for the plugin or go on the waiting list.

This topic has been archived and can no longer be replied to.