Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Im scrapping some posts but for some posts im having some time trouble.

almost all post i get have this time display:

966073591086403585 2018-02-20 19:14:27 -0300

when the scrapping stops it gives me this error:

ValueError: time data '2018-02-17 14:27:24 -02' does not match format '%Y-%m-%d %H:%M:%S %Z'

What is the diference between -0300 and -02?

this is my code:

for i in list_:
    print(i)
    c = twint.Config()
    c.Search = i
    c.Pandas = True
    c.Since = "2018-01-01"
    c.Until = "2018-02-28"
    c.Lang = 'pt'
    c.Near = "Brasil "
    twint.run.Search(c);
    df_m_1s = twint.storage.panda.Tweets_df

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
845 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...