Skip to content

Commit

Permalink
Fix the relative path param name && total pages
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddharthaAnand committed Jun 29, 2020
1 parent cd8bad6 commit 89e7a15
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ncbi_sars2_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ def crawl_nucleotide_relative_url(url=None, chromepath=None):
driver.get(url)
url_count = 0
c = 0
pages = range(16)
nucleotide_details_dict = {}
try:
for page in range(16):
for page in range(29):
########################################################
# Get the page first #
########################################################
Expand Down Expand Up @@ -200,7 +199,7 @@ def init_args_parser_with_commands():
directory=relative_file_path)

if crawl_timedout_pages is True:
json_data = read_as_json(rel_file_path=relative_file_path)
json_data = read_as_json(relative_file_path=relative_file_path)
crawl_atgc_sequence(base_url='https://www.ncbi.nlm.nih.gov',
query_param='?expands-on=true',
accession_url_mapper=json_data,
Expand Down

0 comments on commit 89e7a15

Please sign in to comment.