Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/289.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在python中从HTML解析器访问数据_Python_Html Parsing - Fatal编程技术网

在python中从HTML解析器访问数据

在python中从HTML解析器访问数据,python,html-parsing,Python,Html Parsing,我试图阅读网页并通过代码访问一些数据,我使用HTMLPasser访问数据,但是,我在访问某些特定数据时遇到困难: <div class="xlarge-2 large-2 medium-4 small-9 columns small-offset-3 medium-offset-0 text-large"> <span class="text-for-mobile"

我试图阅读网页并通过代码访问一些数据,我使用HTMLPasser访问数据,但是,我在访问某些特定数据时遇到困难:

  <div class="xlarge-2 large-2 medium-4 small-9 columns small-offset-3 medium-offset-0 text-large">
                                    <span class="text-for-mobile">Per�odo</span>
            1930 - 2005
                </div>

每�奥多
1930 - 2005

我试图访问日期(1930-2005),为此,我试图覆盖handle_数据的方法,但无法获取数据。您知道哪种方法可以让我访问数据吗?

代码的python方面是什么?您试图使用什么工具获取这些数据?