You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An endpoint can be added to get the favorites for a person on MAL, by requesting the mobile version of the site.
could be put at person/id/favorites
heres a proof of concept:
importrequestsfrombs4importBeautifulSoupheaders_mobile= { 'User-Agent' : 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B137 Safari/601.1'}
resp=requests.get("https://myanimelist.net/people/5", headers=headers_mobile)
soup=BeautifulSoup(resp.text)
[{el.select('p[class^="va-slider-item"]')[0].text: el.find("span", attrs={"data-users": True})["data-users"]} forelinsoup.select(".va-slider-item") ifel.select('p[class^="va-slider-item"]')]
This issue will be closed and archived in 18 days, as there has been no activity in the last 60 days. If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue.
An endpoint can be added to get the favorites for a person on MAL, by requesting the mobile version of the site.
could be put at
person/id/favorites
heres a proof of concept:
Output:
The text was updated successfully, but these errors were encountered: