Open abhillman opened 10 years ago
Hi there,
The long-term solution is that the fromUrl
function needs to be fixed to account for redirects. Unfortunately I don't have time to do this right now, but you can download a webpage into a string yourself and then use parseHtml
to parse it into a tree.
Hi! Thanks for the great package. Sometimes, of course, HTTP servers return a 3xx code (e.g. 302) indicating that a resource exists at another location. For example, Wikipedia's random page link (http://en.wikipedia.org/wiki/Special:Random) can give something like:
I couldn't seem to be able to find a way to allow for redirects when using the
fromUrl
function. Is there an alternative? Thanks!