akamhy / waybackpy

Wayback Machine API interface & a command-line tool
https://pypi.org/project/waybackpy/
MIT License
464 stars 34 forks source link

Adding attributes to Url class #28

Closed dv11364 closed 3 years ago

dv11364 commented 3 years ago

Added the following attributes to Url:

  1. self.JSON: JSON of latest archive so that others can access the data a little easier.
  2. self.archive_url: Latest Archive URL (which is now shown when print() is used on Url()) so that the functionality described in the Readme still works but also can show immediately to users the archive URL without having to use print().
  3. self.timestamp: Timestamp of latest archive so that folks know how old the newest archive is. Using len() on Url shows the age of the archive in days now, too.

The methods were edited to change attributes 2. and 3. and now return self. The Readme functionality is still preserved with the changes described above.

akamhy commented 3 years ago

After updating the docs, CLI, and tests I would create a new release by Sunday.