Htmllibrarian

Latest version: v0.0.14

Safety actively analyzes 613631 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.2

- Fixed a lot of simple bugs
CHANGED FUNCTIONALITY:
**FROM** `librarian.get(alinkstr)` handling the control flow of looking for the link in the linkMap, then taking the link if it can find it
**TO** `librarian.get(alinkstr)` retrieving the _latest_ dataLink object of the library if it's available, otherwise it calls `librarian.fetch(alinkstr)` which appends a new dataLink object to a list of `linkData` classes with the id of `alinkstr`
`librarian.fetch(alinkstr)` will fetch the html of `alink`, make a new dataLink and append it to the list associated with the link `alinkstr`

CREATED FUNCTIONALITY:
`LinkData` class:
- `linkData.get_html()` will return the html that the `linkData` object has
- Instead of the data just being a string, include link and when the site was scraped; if a fetch call is ever made, then append the newest linkData to a list of these objects
- Set up a `librarian.clean()` function which cleans the htmlLibrary and librarianTools for you
- `librarian.fetch(alinkstr)` fetches the html corresponding to the url `alinkstr` and stores it
- `librarian.get_all(alinkstr)` now returns a list of linkData objects where `alinkstr` maps to the list
- `librarian.get(alinkstr)` returns the latest dataLink object scraped

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.