iojw / socialscan

Python library for accurately querying username and email usage on online platforms
Mozilla Public License 2.0
1.48k stars 185 forks source link

fix: prevent Instagram 'too many requests' error #64

Closed harveyrandall closed 8 months ago

harveyrandall commented 8 months ago

Instagram requests broke because it didn't treat the User Agent 'socialscan v2.0.0' as valid. The Instagram URL was correct but would return a 400 with message 'user agent mismatch'. Updating the user agent in 'BasePlatform' prevents this.

iojw commented 8 months ago

@harveyrandall Works great! Thank you for the contribution.