Zettt / km-markdown-library

Markdown library for Keyboard Maestro.
193 stars 10 forks source link

Fetching <title> fails with Facebook URL's #22

Closed Zettt closed 8 years ago

Zettt commented 10 years ago

Test URL's:

https://www.facebook.com/andreas.zeitler

Zettt commented 9 years ago

I'm not going to fix this shit. Facebook is generating a new DOM for every device/software that's accessing their site. I get a totally different HTML when I'm curling the site, than when I visit in Safari. I tried to write a better RegEx for this, but this is just stupid. Sometimes they output stupid horsepoop like this:

<title id="pageTitle">Content not found <script>

Without a closing </title>! Guys, I can't work this way. Why? Why? Why is this so stupid and broken? Can't you just output a string that looks like the title of a page, and that has a simple format like <title>TITLE OF PAGE</title>? Obviously an id is super necessary here, because it means Facebook can blink the title in a browser window when a new like has been received, or whatever.

I'm frustrated now. I hope that becomes evident. Thanks for using Markdown for Keyboard Maestro! Have a good day.

Zettt commented 8 years ago

Seems to have been an issue by Facebook. Whatever.