OxbridgeEconomics
commited on
Update ndrc.py
Browse files
ndrc.py
CHANGED
@@ -50,8 +50,8 @@ while i > -1:
|
|
50 |
article['url'] = url
|
51 |
article['category']= "Policy Release"
|
52 |
article['publishDate'] = datemodifier(page.xpath("//meta[@name = 'firstpublishedtime']/@content")[0], "%Y-%m-%d-%H:%M:%S")
|
53 |
-
elif "
|
54 |
-
url = url.replace("../../zcfb/
|
55 |
print(url)
|
56 |
req = urllib.request.urlopen(url)
|
57 |
text = req.read()
|
|
|
50 |
article['url'] = url
|
51 |
article['category']= "Policy Release"
|
52 |
article['publishDate'] = datemodifier(page.xpath("//meta[@name = 'firstpublishedtime']/@content")[0], "%Y-%m-%d-%H:%M:%S")
|
53 |
+
elif "../../zcfb/" in url:
|
54 |
+
url = url.replace("../../zcfb/", "https://www.ndrc.gov.cn/xxgk/zcfb/")
|
55 |
print(url)
|
56 |
req = urllib.request.urlopen(url)
|
57 |
text = req.read()
|