Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CLIENT_ID=
CLIENT_SECRET=
REDIRECT_URI=http://localhost:5000/oauth/callback
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.env
.venv
__pycache__/
*.pyc
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ A code sample that enables you to enable you to export your Bookmarks to a CSV f

## What do you need to get started with the Twitter API

You need to [sign up](http://t.co/signup) for access to the Twitter API. You will also create a project in the [developer portal](https://developer.twitter.com/en/portal/dashboard) and an App containing the credentials required to use the Twitter API. Additionally, you will need to have OAuth 2.0 turned on in your App’s authentication settings. The [developer playground](http://t.co/tryapi) is a great place to start using the Twitter API.
- You need to [sign up](http://t.co/signup) for access to the Twitter API.
- You will also create a project in the [developer portal](https://developer.twitter.com/en/portal/dashboard) and an App containing the credentials required to use the Twitter API.
- You will need to have OAuth 2.0 turned on in your App’s authentication settings [OAuth 2.0 Authorization Code Flow with PKCE](https://docs.x.com/fundamentals/authentication/oauth-2-0/authorization-code).
- Populate a `.env` file with your App credentials. You can refer to the `.example.env` file for the required variables.
- The [developer playground](http://t.co/tryapi) is a great place to start using the Twitter API.
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[project]
name = "export-bookmarks"
version = "0.1.0"
description = "A code sample that enables you to enable you to export your Bookmarks to a CSV file."
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"flask",
"requests_oauthlib",
"requests",
"pandas",
"gunicorn"
]
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

512 changes: 512 additions & 0 deletions uv.lock

Large diffs are not rendered by default.