285
社区成员




This task is all about the front end
Team members | Task completed | Duration of the task | Remaining time |
---|---|---|---|
Li Liangkai | target seletion | 6 hours | 9 Days |
Qing Qiguo | code development | 3 hours | 9 Days |
Tang Zijun | code development | 4 hours | 9 Days |
Ma Yunjun | code development | 4 hours | 9 Days |
Xue Feiyang | code development | 4 hous | 9 Days |
An Yi | target seletion | 4 hours | 9 Days |
Peng Haitao | test of function | 7 hours | 9 Days |
Li Xing | test of function | 5 hours | 9 Days |
Li Hao | more functions suggestion | 5 hours | 9 Days |
Zhou Zijun | more functions suggestion | 6 hours | 9 Days |
a. Execute the pthon script on a Java-based server.
b. The string is crawled and converted into a structured list hash dictionary.
a.With jython, you can use not only Python's libraries, but also all the Java classes provided.
b. Invoke the jsoup package.
Identify the distribution of work.
https://github.com/LittleMatcher/EE308FZ-fund
- import json
-
- import requests
-
- def get_val(fid):
- headers = {
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36',
- }
- url = 'https://fundgz.1234567.com.cn/js/' + fid + '.js'
- resp = requests.get(url, headers=headers)
- content = resp.content.decode()
-
- content = content.removeprefix('jsonpgz(')
- content = content.removesuffix(');')
-
- content = json.loads(content)
-
- rate = content['gszzl']
- val = content['gsz']
-
- return rate
-
-
- if __name__ == '__main__':
- print(get_val('000001'))
- # headers = {
- # 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36',
- # }
- # url = 'https://fundgz.1234567.com.cn/js/000001.js'
- # resp = requests.get(url, headers=headers)
- # content = resp.content.decode()
- #
- # content = content.removeprefix('jsonpgz(')
- # content = content.removesuffix(');')
- #
- # content = json.loads(content)
- #
- # rate = content['gszzl']
- # val = content['gsz']
- #
- # print(rate)
- # print(val)
-
The crawler was completely programming.
Team members | Contribution(%) |
---|---|
Li Liangkai | 99 |
Qing Qiguo | 109 |
Tang Zijun | 99 |
Ma Yunjun | 99 |
Xue Feiyang | 99 |
An Yi | 99 |
Peng Haitao | 99 |
Li Xing | 99 |
Li Hao | 99 |
Zhou Zijun | 99 |
Total | 1000 |