Instagram ID scraper API, project built as a work on the Upwork.com (https://www.upwork.com/) platform, objective of this project is to filter users from strings provided in the input file.
When parsing the string, if there are more than three users, nothing is returned, otherwise, the respective ID of that user is returned.
"search.py" has an authentication process, simulating packages from a smartphone.
"search2.py" does not have an authentication process.
To run the "search.py" program, it is necessary to have an input file with the strings to be scraped:
$ ls input-file.txt
user1
user2
user3
user4
...
The program is executed passing the input file as the first parameter and the output file as the second parameter:
$ python search.py input-file.txt output-file.txt
Finally, the ID of each user separated by pipeline will be returned, if the number of users found corresponding to the searched string is less than four:
$ ls output-file.txt
user1
|id1,id2,id3
user2
|id1,id2
user3
|id1
user4
|
...
In the previous example, user1 found four users, user2 two users, user3 one user, and user4 found more than four users.
You can access the project's source code or download it.
Python
Gabriel Ferreira |
---|