instascrape
instascrape copied to clipboard
Incorrect Full Name being returned for Profile Object
Describe the bug
When creating a Profile object, the full_name
attribute can be incorrect.
To Reproduce Steps to reproduce the behavior:
- Without a sessionid
prof = Profile("https://www.instagram.com/atlassian/")
- print(prof.full_name)
- See that the name returned is
Max Sutton
(when creating this issue) instead ofAtlassian
Expected behavior
Expecting prof.full_name
to return Atlassian
Additional context
I think the issue is in instascrape.core._mappings._ProfileMapping
where full_name
is mapped to user_full_name
. I'm not sure why this is the case, but if this was just mapped to full_name
I believe, after my testing, that this should solve the issue. Happy to PR if need be.
Just noticed this happening with the username
as well. Added to the PR