Giter VIP home page Giter VIP logo

Comments (3)

arleigh418 avatar arleigh418 commented on June 15, 2024

Hi 您好, 這屬於Warnings.其實Warnings並不是錯誤,只是一種提醒或警告.
應該是因為我的套件版本比您的舊,所以我沒有跳出這個警告.

例如它字面告您的,他建議您在BeautifulSoup()方法中,指定解析器為lxml.
遇到WARNINGS通常有三種選項:

  1. 看到WARNINGS選擇無視不在意,若您的套件版本不要進行升級等,並確定程式確實是可以正常運行,其實可以無視.
  2. 依照他的建議, 加上解析器BeautifulSoup(data.text,features="lxml") , 但這個有時候會有造成程式出錯的風險, 因為有一些warnings的建議並不是寫得非常仔細
  3. 利用warnings套件, 選擇不要SHOW出任何WARNINGS, 眼不見為淨.可嘗試以下加在程式裡
    import warnings
    warnings.filterwarnings('ignore')

from python-and-taiwan-stock-market.

erichuang888 avatar erichuang888 commented on June 15, 2024

已順利解決,謝謝

from python-and-taiwan-stock-market.

arleigh418 avatar arleigh418 commented on June 15, 2024

不會, 歡迎您隨時提出討論.

from python-and-taiwan-stock-market.

Related Issues (20)

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.