bomb"Programs must be written for people to read, and only incidentally for machines to execute."
dragonmasterThat sounds suspiciously Knuthy
dreamrealIt does, and it's good advice
if-p-then-qHiya! I'm on the train to my java lecture and decided to look it over, seems like we cover packages today, if I'd waited a week to start my project I may have had an easier time understanding the project structure lol
dreamrealwelp, nevet has PEP support. The RFC process isn't idempotent - the first request yields different responses than later requests, but that's because the first request gives you the data from the RFC or whatever, and subsequent requests are factoids.
dreamrealbut this is neat: adding extra spec requests like that is pretty simple.
deeboi was wondering wtf is this new nevet spec, 'nevet pep' google search only brings up post exposure medication for hiv...
dreamrealdeebo: /whois nevet :D
dreamrealI'm about to do a new release on it, lots of little fixes as I poke and prod
[twisti]fuck that api shit, id just curl and pretend to be firefox or something
dreamrealyoutube and twitter used to encode the title in the data somewhere; I don't know if they still do, but it was always a pain to work with.
cheeseranti-bot/scraping
dreamrealYeah. Avoiding the anti-scraping is not that difficult at all; it's a little impolite, but they kinda ask for it by being evil or evil-ish. That still leaves the problem of finding the title.
[twisti]probably got to adjust that every few months, but less often than the api
[twisti]yeah
dreamrealWhich means we need special selectors for that site, which is the whole point I was making.
[twisti]as opposed to a special api for that site ?
[twisti]or just say fuck it, run puppeteer and grab the actual title
[twisti]though that probably opens a whole new can of worms
dreamrealRunning puppeteer for an irc bot sounds... uh...
dreamrealI mean, I can just say "if the site matches this, use this selector mechanism" which means I'm just writing selectors/client profiles for twitter and youtube specifically, not too far off from how javabot does it today
dreamreal~8 ball
javabotMost likely
dreamrealnevet does that with an interpolation: "<reply>(Yes|No|Maybe|Ask me( tomorrow| again| again tomorrow)|It's (unclear|unknowable))."
dreamrealand yes, the expression could be "more efficient." The goal was to get it working, where you can nest the expressions.
dreamrealnevet also does JCP/JSR/RFC lookups but seeds the factoid system with the retrieved information, so now you can annotate jsr 52's text with "don't use this crap!" and such
dreamrealit's still not "ready" - I'm filing new issues pretty often - but a lot of those issues are being fixed with relatively little code.