From: Claromes Date: Fri, 14 Jun 2024 20:03:25 +0000 (-0300) Subject: update docs X-Git-Url: https://git.claromes.com/?a=commitdiff_plain;h=8de8e215f53c8d5f11ec4b802cb8be2737c9a517;p=waybacktweets.git update docs --- diff --git a/README.md b/README.md index 1613ee7..934f755 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![PyPI](https://img.shields.io/pypi/v/waybacktweets)](https://pypi.org/project/waybacktweets) -Retrieves archived tweets CDX data from the Wayback Machine, performs necessary parsing, and saves the data. +Retrieves archived tweets CDX data from the Wayback Machine, performs necessary parsing, and saves the data in CSV, JSON, and HTML formats. ## Installation @@ -44,8 +44,8 @@ archived_tweets = api.get() ## Documentation -- [Wayback Tweets documentation]() -- [Wayback CDX Server API - Beta documentation](https://archive.org/developers/wayback-cdx-server.html) +- [Wayback Tweets documentation](https://claromes.github.io/waybacktweets) +- [Wayback CDX Server API (Beta) documentation](https://archive.org/developers/wayback-cdx-server.html) ## Acknowledgements diff --git a/app/app.py b/app/app.py index 7a38213..5a8d8c9 100644 --- a/app/app.py +++ b/app/app.py @@ -140,9 +140,9 @@ st.success( """**New Feature: CLI** You can now retrieve archived tweets using the Wayback Tweets command line tool. -Download the archived tweets' CDX data in CSV, JSON, and HTML formats. +Download the archived tweets CDX data in CSV, JSON, and HTML formats. -For more details, [read the documentation](https://github.com/claromes/waybacktweets).""" # noqa: E501 +For more details, [read the documentation](https://claromes.github.io/waybacktweets).""" # noqa: E501 ) st.title( diff --git a/docs/index.rst b/docs/index.rst index b41345c..df48609 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -7,7 +7,7 @@ Wayback Tweets Wayback Tweets Documentation ------------------------------ -Retrieves archived tweets' CDX data from the Wayback Machine, performs necessary parsing, and saves the data. +Retrieves archived tweets CDX data from the Wayback Machine, performs necessary parsing, and saves the data in CSV, JSON, and HTML formats. User Guide @@ -22,6 +22,7 @@ User Guide result errors contribute + todo Command-Line Interface diff --git a/docs/installation.rst b/docs/installation.rst index 725f6c7..e2df76b 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -37,4 +37,10 @@ From source poetry install + Run Streamlit App: + + .. code-block:: shell + + streamlit run app/app.py + `Read the Poetry CLI documentation `_. diff --git a/docs/todo.rst b/docs/todo.rst new file mode 100644 index 0000000..4b2caa1 --- /dev/null +++ b/docs/todo.rst @@ -0,0 +1,9 @@ +TODO +================ + +.. |uncheck| raw:: html + + + +|uncheck| JSON Issue: Create a separate function to handle JSON return, apply JsonParser (``waybacktweets/api/parse_tweets.py:73``), and avoid rate limiting. + diff --git a/docs/workflow.rst b/docs/workflow.rst index 2480b35..c3ffd32 100644 --- a/docs/workflow.rst +++ b/docs/workflow.rst @@ -19,5 +19,5 @@ Use the mouse to zoom in and out the flowchart. C--> |4xx| E[return None] E--> F{request Archived\nTweet URL} F--> |4xx| G[return Only CDX data] - F--> |2xx/3xx: application/json| J[return JSON text] + F--> |TODO: 2xx/3xx: application/json| J[return JSON text] F--> |2xx/3xx: text/html, warc/revisit, unk| K[return HTML iframe tag]