#Loqi[kevinmarks]: sebsel left you a message 9 hours, 31 minutes ago: Oh thanks! I actually already implemented a Twitter login on my site before I saw your message :)
#petermolnarI found an interesting problem: I'm using a fork of https://github.com/vrypan/webmention-tools to find the author on a page with Beautifulsoup as .find(True, attrs={'class':'h-card'}) or .find(True, attrs={'class':'p-author'}). myfreeweb reposted a post of mine at https://unrelenting.technology/notes/2016-07-20-15-59-46 and the reponst contains my h-card as well, and because it's the first h-card on the page this way, that's the
#petermolnarh-card that gets found. Any ideas how to address this with the same find method? Basically I'm trying to figure out how to limit the search depth or to exclude elements with certain parent classes.
#petermolnaroh. the h-enty is on the <body> on that site. That complicates things
#petermolnarI think I got it, if .find_parents(True, attrs={'class':'e-content'}) finds anything, move on
#ZegnatYou are using a full HTML parser for finding microformats? I would like to do that too, but my options in PHP seem limited
#GWGBut you can't push people on the scale they have without consequences
#petermolnarwp would benefit from an LTS release for sure, but their current way of keep things compatible and save people from themselves is just terrible
#petermolnarso sure, LTS is needed, proper deprecation warnings are needed, and so on, but you need to move forward at some point
#petermolnarI'm having so much pain with mint 18 that I'm seriously condisering stepping back
#cweiskein my eyes people deprecate too early and don't care about BC mostly
#petermolnarmost of them, sure, WP is definitely not one of them :)
#Zegnatvoxpelli: http://masterminds.github.io/html5-php/ converts to and from DOMDocument though. I just always feel a bit iffy about that. But I will check it out slightly more indepth soon
singpolyma and mbrock joined the channel
#aaronpkpetermolnar: is there a reason you don't just parse the whole page and deal with the resulting mf2 data structure?
#petermolnarno, this ended up to be efficient enough
#aaronpkbecause that author h-card won't be the "first" one anymore, it would move to a nested object of the h-entry
#petermolnarthat is fine; I'm doing a find_all and exclude all of those which have e-content class as parent
#petermolnarthe first of the remaining is good enough
#aaronpki just think you're going to end up with a bunch of other edge cases doing it this way
#petermolnarnot impossible, and I'll probably consider moving back to full mf2 parsing the next time I find something like this, but this is still a fast and easy way
#voxpelliyeah, using a proper mf2-parser that passes all of the tests that has been created for an mf2-parser should be preferable
#voxpellielse there's always a risk that someone can have a special case that's supported by tested parsers but which one hasn't thought of oneself
#petermolnarbut... I just want to find the h-card...
#tantekpetermolnar: why does it complicate things to put h-entry on the <body> ? that's actually a recommended practice for post permalink pages - that way you are indicating this entire page represents a post
#sebselalso wandering: I should detect authors on urls I mention in my private posts, and then add those to the audience/whitelist of people who can login.
#sebselI might only want to do that for in-reply-to and like-of links though. Not sure.
#aaronpki decided i didn't want to do that automatically
#aaronpksame behavior as mentioning people in private slack conversations. they aren't automatically added to the conversation
KartikPrabhu joined the channel
#sebselhm, yeah. but that would require some webmention UI for me, then, because I can't manually generate the token and stuff.