added workthrough comments at bottom of page

This commit is contained in:
spbeach46 2020-06-11 17:54:12 -07:00
parent 3b2c36f6ad
commit f40825139b

View File

@ -117,3 +117,4 @@ def main():
print(total_results) print(total_results)
main() main()
'''to speed up the program you can include a few things: 1) only parse the total results and sift for the NWT listings to create a separate NWT list 2) Implement processpoolexecutor to use more than one worker to parse the pages 3) find a better way to find the last page so you don't have to make more requests than necessary. This could be either taking the "smallest" "no listings found" page of the pages while excluding the others after the smallest one is found. Or, determining from the request headers whether a page is worth downloading or not 4) using a while loop in chunks of 2-4 pages to find the last page in conjunction with number 3'''