Add script for selecting usernames from Instagram's follower and following list div HTML
This commit is contained in:
parent
2dafd063e1
commit
2ddf229359
18
clear_html.py
Normal file
18
clear_html.py
Normal 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))
|
Loading…
x
Reference in New Issue
Block a user