OxbridgeEconomics commited on
Commit
af6fef8
·
unverified ·
1 Parent(s): c4bcfe6

Update ndrc.py

Browse files
Files changed (1) hide show
  1. ndrc.py +2 -2
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 "/zcfb/tz/" in url:
54
- url = url.replace("../../zcfb/tz/", "https://www.ndrc.gov.cn/xxgk/zcfb/tz/")
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()