Input a ticker name from the front, the API will provide five article links and the corresponding five summaries.
Refactor Crawler.py and also revise the return variable, adding link as return.
Attention
@tejkoiejgns ModelAPI.main()
ModelAPI.main() should take an input, the article texts. Check the code and you will see what I mean.
@Weirdojord Crawler.main()
Crawler.main() should also return the corresponding five links. Each of your get_article sub-function has a return links, but in the main(), it doesn't return the links. I wanted you to organize the Crawler.py script to satisfy the needs of the API in this PR.
Get Summary API
Summary
Input a ticker name from the front, the API will provide five article links and the corresponding five summaries.
Refactor
Crawler.py
and also revise the return variable, adding link as return.Attention
@tejkoiejgns ModelAPI.main()
ModelAPI.main()
should take an input, the article texts. Check the code and you will see what I mean.@Weirdojord Crawler.main()
Crawler.main()
should also return the corresponding five links. Each of your get_article sub-function has a returnlinks
, but in themain()
, it doesn't return the links. I wanted you to organize the Crawler.py script to satisfy the needs of the API in this PR.