Giter VIP home page Giter VIP logo

troveharvester's Introduction

TroveHarvester

This repository has been archived. Development of the latest version of the Trove Newspaper Harvester continues in the trove-newspaper-harvester repository.

troveharvester's People

Contributors

gcuth avatar wragge avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

troveharvester's Issues

AttributeError: 'str' object has no attribute 'copy'

Invoking troveharvester, with a fresh pyenv:
$ troveharvester start "https://api.trove.nla.gov.au/v2/result?zone=newspaper&q=%22Brian%22%" [key removed] --pdf --text

produces:

Traceback (most recent call last):
  File "/home/ubuntu/.pyenv/versions/3.7.5/envs/troveharvester-3.7.5/bin/troveharvester", line 10, in <module>
    sys.exit(main())
  File "/home/ubuntu/.pyenv/versions/3.7.5/envs/troveharvester-3.7.5/lib/python3.7/site-packages/troveharvester/__main__.py", line 550, in main
    prepare_harvest(args)
  File "/home/ubuntu/.pyenv/versions/3.7.5/envs/troveharvester-3.7.5/lib/python3.7/site-packages/troveharvester/__main__.py", line 521, in prepare_harvest
    start_harvest(data_dir=data_dir, key=args.key, query=args.query, pdf=args.pdf, text=args.text, start='*', max=args.max)
  File "/home/ubuntu/.pyenv/versions/3.7.5/envs/troveharvester-3.7.5/lib/python3.7/site-packages/troveharvester/__main__.py", line 531, in start_harvest
    harvester = Harvester(query_params=params, data_dir=data_dir, pdf=pdf, text=text, start=start, max=max)
  File "/home/ubuntu/.pyenv/versions/3.7.5/envs/troveharvester-3.7.5/lib/python3.7/site-packages/troveharvester/__main__.py", line 81, in __init__
    self._get_total()
  File "/home/ubuntu/.pyenv/versions/3.7.5/envs/troveharvester-3.7.5/lib/python3.7/site-packages/troveharvester/__main__.py", line 84, in _get_total
    params = self.query_params.copy()
AttributeError: 'str' object has no attribute 'copy'

Is there a issue with 3.7? (Happy to help replicate further)

Ubuntu 16.04, Python 3.7.5, dedicated pyenv. Freshly reregistered API key

Restart function is duplicating rows

The restart function seems to result in some duplicate rows in the CSV dataset. Also progress isn't properly reported with tqdm when restarting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.