<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[修复 FinGPT content 爬虫脚本]]></title><description><![CDATA[<p dir="auto">修改了2个地方，<br />
1、 判断状态 有错误<br />
2、 获取内容因为网页改版，导致数据获取不到，修改如下：</p>
<pre><code>    while not ok:
        try:
            response = requests.get(url = url, headers = headers)
            print(url,response.status_code)
            if response.status_code == 200:
                res = etree.HTML(response.text)
                res = res.xpath("//script[2]//text()")[0]
                res = json.loads(res[17:])
                res = pd.Series(res).to_frame().T
                ok = True
                return res
        except :
            pass

</code></pre>
]]></description><link>http://localhost:4567/topic/177/修复-fingpt-content-爬虫脚本</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 11:17:45 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/177.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Jun 2023 07:02:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 修复 FinGPT content 爬虫脚本 on Sun, 18 Jun 2023 07:03:01 GMT]]></title><description><![CDATA[<p dir="auto">FinGPT-v1/data_preparations$ vim download_contents.py</p>
]]></description><link>http://localhost:4567/post/309</link><guid isPermaLink="true">http://localhost:4567/post/309</guid><dc:creator><![CDATA[asmcos]]></dc:creator><pubDate>Sun, 18 Jun 2023 07:03:01 GMT</pubDate></item></channel></rss>