-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from mikepsinn/develop
FDAi Act, Chrome Extension, Amazon Extractor
- Loading branch information
Showing
92 changed files
with
4,079 additions
and
1,398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
# Get this from https://platform.openai.com/account/api-keys | ||
OPENAI_API_KEY=YOUR_API_KEY | ||
|
||
# Get this from https://lightsail.aws.amazon.com/ls/webapp/us-east-1/buckets | ||
AWS_ACCESS_KEY_ID=your_access_key_id | ||
AWS_SECRET_ACCESS_KEY=your_secret_access_key | ||
AWS_REGION=your_aws_region | ||
BUCKET_NAME=your_s3_bucket_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Function to extract the data | ||
function extractAndSaveAmazon() { | ||
// Send a message to the background script to navigate to the Amazon order history page | ||
chrome.runtime.sendMessage({action: "navigate", url: "https://www.amazon.com/gp/css/order-history?ref_=nav_orders_first"}); | ||
|
||
// Rest of your function code here... | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
console.log('contentScriptForFdai.js loaded'); | ||
chrome.runtime.onMessage.addListener( | ||
function(request, sender, sendResponse) { | ||
console.log('contentScriptForFdai.js received a message', request); | ||
if (request.message === "getFdaiLocalStorage") { | ||
sendResponse({data: localStorage.getItem(request.key)}); | ||
} | ||
} | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.