Giter Club home page Giter Club logo

weibo-crawler's People

Contributors

hezhang1994 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

weibo-crawler's Issues

抓取到live photo会报错

换了不同人的账号,一到live photo就会报错
FileNotFoundError: [WinError 2] 系统找不到指定的文件
谢谢

Unknown Bug

It happens at the following code:
if card['mblog']['isLongText'] == 'False': ... else: ...

In details, when card['mblog']['isLongText'] = False, the code still excutes the else content.

Limitations

  1. If the cookie is expired, the crawling process will stop.

    • How to continue to crawl data from the stopped post?
    • How to automatic crawl data?
  2. How to crawl video?

Limitation

  1. If the cookie is expired, the crawling process will stop.

    • How to continue to crawl data from the stopped post?
    • How to automatic crawl data?
  2. How to crawl videos?

  3. How to crawl GIFs?

when time_list == 'N/A\r', it would break

Sometimes, the value of time_list could be ['N/A\r'] (def time_str2float). It may mean the video missed. Then, it would break.
My temporary solution is that set 'time_num = 0', if the 'N/A\r' appears. However, I do not know if it would cause unknown flaws.

KeyError: 'pic_video'

Error message:
Traceback (most recent call last):
File "H:/prbkp/weibo-crawler/run_WeiboCrawler.py", line 245, in
photo_str = card['mblog']['pic_video']
KeyError: 'pic_video'

I do not know why it appeared. I just use:
if card_info:
if 'pic_video' in card_info:
try:
photo_str = card['mblog']['pic_video']
photo_list = re.split('[,]', photo_str)
for photo in photo_list:
# E.g., 'photo' = '0:000voDMsjx07t57qM583010f0100alDF0k01'.
photo_code = re.split('[:]', photo)[1]
photo_url = photo_url_start + photo_code + photo_url_end
photo_urls.append(photo_url)
except:
pass

to skip the part of code to prevent sudden interruption.

Hope it can help for further improvement.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.