y-ncao / Like-My-GF

An auto robot to like my GF's post on Instagram
MIT License
399 stars 43 forks source link

Changed search of user to match exact username only #1

Closed XeroXer closed 9 years ago

XeroXer commented 9 years ago

Instead of limiting the search to one user and hoping that will be the correct on (spoiler: it was wrong for me), I made it search for the username and check matching username.

Example: Entering the username 123 (a user has that exact username) the first match is not the correct one (a user with the username 123.amazingvideos).

I am no python programmer so this pull request is more a suggestion but I wanted to do more than add an issue. :)

Also added [] to the return after logging the error, since without it I got TypeError: object of type 'NoneType' has no len()