escape strings
This commit is contained in:
parent
ae10c5c9b9
commit
41edea1862
20 changed files with 74 additions and 74 deletions
|
|
@ -24,10 +24,10 @@ def find(query=None, user=None, timeout=60):
|
|||
user = re.compile('data-name="(.*?)"').findall(t)[0]
|
||||
user = ox.decode_html(ox.strip_tags(user)).strip()
|
||||
tweets.append({
|
||||
'id': re.compile('data-tweet-id="(\d+)"').findall(t)[0],
|
||||
'user-id': re.compile('data-user-id="(\d+)"').findall(t)[0],
|
||||
'name': re.compile('data-screen-name="(.*?)"').findall(t)[0],
|
||||
'time': datetime.fromtimestamp(int(re.compile('data-time="(\d+)"').findall(t)[0])),
|
||||
'id': re.compile(r'data-tweet-id="(\d+)"').findall(t)[0],
|
||||
'user-id': re.compile(r'data-user-id="(\d+)"').findall(t)[0],
|
||||
'name': re.compile(r'data-screen-name="(.*?)"').findall(t)[0],
|
||||
'time': datetime.fromtimestamp(int(re.compile(r'data-time="(\d+)"').findall(t)[0])),
|
||||
'user': user,
|
||||
'text': text,
|
||||
'html': html,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue