We can now utilize the API to find individuals nearby and now have a review of their profile, and sometimes even as with any of those. Substitute YOUR-API-TOKEN with all the X-Auth-Token you based in the chrome dev console earlier in the day.
Step three: install images of individuals nearby
Next, you want to immediately download some images of individuals nearby that individuals may use for training our AI. With 'some', i am talking about like 1500-2500 images.
First, let us expand a function to our Person class which allows us to install images.
Note that we included some random rests in some places, simply because we will be obstructed whenever we spam the tinder CDN and install many photos in only a couple of seconds.
We compose most of the peoples profile IDs into a file called "profiles.txt". By very very first scanning the document whether a person has already been inside, we are able to skip people we already encountered, so we make certain that we do not classify individuals many times (you will dsicover later why this is certainly a danger).
We are able to now simply loop over nearby individuals and install their pictures into an "unclassified" folder.
We are able to now just start this script and allow it to run for the hours that are few get a couple of hundret profile images of men and women nearby. Then to get new people if you are a tinder PRO user, update your location now and.