John Hawkinson
John Hawkinson
Would we? To the extent the XML has "links" (in which case it is probably XHTML or something which…huh, uses a variety of content-types it seems, including `application/xhtml+xml`), then it...
Thanks. I agree caution is warranted before implementing MIME sniffing, and I don't suggest we do it. That said, there exists https://pypi.org/project/sniffpy/, but I don't know how mature it is....
Any ideas?
Thanks, Dan, for the feedback! Reordering slightly. > I'm not personally opposed to adding some convenience functions like the ones you proposed (especially if someone is willing to contribute them!),...
> The Requests session has a few methods for cookiejar manipulation If only they were sufficient. > Here are two options from a nice StackOverflow post: https://stackoverflow.com/a/51904567/8834658 (i.e. session.cookies.set or...
```py cookie = SimpleCookie(raw_cookie) ``` If only! A similar problem. The `SimpleCookie()` constructor ~does not take a raw cookie string~ **at least, it is not usable as input to `cookie_jar.set_cookie()`...
Having an ugly hack in MechanicalSoup is unappealing, but not as unappealing as having to have it in every users' code that has to deal with this problem, I think....
@ism, that ends up no differently than above in https://github.com/MechanicalSoup/MechanicalSoup/issues/360#issuecomment-809745852, where we got just as far, setting and examining the `SimpleCookie`, albeit with the constructor rather than with the `.load()`...
> I don't understand why do MechanicalSoup have to keep and parse all that info? :) The additional information adds constraints. It adds, for instance, a time after which you...
> I assume this is stale and no longer an[] issue. Err…why would you assume that? I think everything in the original PR remains true, and with appellate RECAP on...