Add script for selecting usernames from Instagram's follower and following list div HTML

This commit is contained in:
Ferit Yiğit BALABAN 2022-04-19 23:45:18 +03:00
parent 2dafd063e1
commit 2ddf229359

18
clear_html.py Normal file
View File

@ -0,0 +1,18 @@
with open('test', 'r') as f:
l = f.readlines()
f.close()
ll = l[0].split('title="')
lt = []
for x in ll:
buffer = ''
cc = 0
while x[cc] != '"':
buffer += x[cc]
cc += 1
lt.append(buffer)
lt.remove('<div class=')
[print(x) for x in lt]
print(len(lt))