diff options
| author | jules@lens <julescarbon@gmail.com> | 2019-02-13 02:02:11 +0100 |
|---|---|---|
| committer | jules@lens <julescarbon@gmail.com> | 2019-02-13 02:02:11 +0100 |
| commit | 857a8a5f13fa63e7cbc56bfee0361c8c02860424 (patch) | |
| tree | caf41529595dd05ca0808a9fcf5739613df3438c /scraper/s2-papers.py | |
| parent | 84500c8a1e4e7ef267d71fdf8ad5a52fb33b2cb5 (diff) | |
| parent | dc7d9cbba842472efb33186e97ee55751e4d50ca (diff) | |
Merge branch 'master' of asdf.us:megapixels_dev
Diffstat (limited to 'scraper/s2-papers.py')
| -rw-r--r-- | scraper/s2-papers.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scraper/s2-papers.py b/scraper/s2-papers.py index 9a584e29..744454b7 100644 --- a/scraper/s2-papers.py +++ b/scraper/s2-papers.py @@ -23,8 +23,16 @@ def fetch_papers(): no_location_rows = [] nonmatching_rows = [] for line in lines: - key, name, title, paper_id, is_unknown = line + # key, name, title, paper_id, is_unknown, notes = line + key = line[0] + name = line[1] + title = line[2] + paper_id = line[3] + if paper_id == '': + continue paper = fetch_paper(s2, paper_id) + if paper is None: + continue db_paper = load_paper(paper_id) pdf_link = db_paper.pdf_link if db_paper else "" |
