teeli / urltitle

Eggdrop scripts that display titles of URLs pasted on an IRC channel
MIT License
8 stars 10 forks source link

Title breaks when page has multiple title tags #3

Closed teeli closed 7 years ago

teeli commented 8 years ago

Title parsing currently breaks if the page has multiple title tags (anywhere, including some embedded JavaScript on the page). Regular expression should be updated.

teeli commented 7 years ago

Using Xpath should work better than regular expressions.

teeli commented 7 years ago

v0.6 now using xpath if tdom package is found