Skip to content

Chrome extension initial commit #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 58 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
fe645ef
Project proposal submission
christianopperman Oct 27, 2023
6cc7539
Scrape tool created. Subtitles scraped.
a598504775 Nov 17, 2023
a4d325e
Chrome extension - initial commit
himangshu81 Nov 17, 2023
c91948c
Update the subtitle dataset and scrape code
a598504775 Nov 18, 2023
632ce68
Merge branch 'main' of https://github.com/christianopperman/CS410_Fal…
a598504775 Nov 18, 2023
ce06271
Add progress report to Github
christianopperman Nov 19, 2023
ef96643
Indexing data to Elasticsearch
himangshu81 Nov 24, 2023
0b18519
Adding basic search logic
himangshu81 Nov 29, 2023
05764b0
Working plugin
himangshu81 Dec 1, 2023
6b0c737
Update README documentation
christianopperman Dec 3, 2023
7619d23
Generalize scraping script
christianopperman Dec 3, 2023
1463476
Update gitignore, include documentation images
christianopperman Dec 3, 2023
ec86dc0
Increase sleep waittime
christianopperman Dec 3, 2023
c852c1c
Update .gitignore
christianopperman Dec 5, 2023
7e1881f
Refine scraper script to have a single point of entry
christianopperman Dec 5, 2023
1c00933
Add requirements.txt file for Python scraper
christianopperman Dec 5, 2023
fd17060
Update ElasticSearch writer
christianopperman Dec 5, 2023
2555ae6
Rename Python script parent folder
christianopperman Dec 5, 2023
67e773f
Move project proposal and progress report to Documentation folder
christianopperman Dec 5, 2023
7fc19bd
Remove log and credentials from GitHub
christianopperman Dec 5, 2023
ad413d5
Rename Extension folder
christianopperman Dec 5, 2023
af2406a
Update ES to index Week, lecture title and subtitles and including th…
himangshu81 Dec 7, 2023
470f9fc
Adding the manifest file back for chrome extension
himangshu81 Dec 7, 2023
3a295f3
Removing .idea
himangshu81 Dec 7, 2023
3b73924
Build UI
a598504775 Dec 8, 2023
0a1f5de
chat coursera first commit. Does not run yet.
aadi123 Dec 8, 2023
c6934f3
Fix course title scraping
christianopperman Dec 10, 2023
90b0244
Update README documentation. Add course title scraping to CourseraScr…
christianopperman Dec 10, 2023
f48293a
Updating ES URL and password.
himangshu81 Dec 11, 2023
b77e7be
Cleaning up to "subtitles" index.
himangshu81 Dec 11, 2023
21d8a52
added chat coursera working
aadi123 Dec 12, 2023
97c667c
Adding course_name in search result and pushing to ES
himangshu81 Dec 12, 2023
3901e93
Update gitignore
christianopperman Dec 12, 2023
5910720
Update course scraper and elastic search push to fix bugs
christianopperman Dec 12, 2023
5b70377
Resolve merge conflicts
christianopperman Dec 12, 2023
4774304
Merge pull request #1 from christianopperman/course_name
christianopperman Dec 12, 2023
f737268
Refactor ChatGPT integration code
christianopperman Dec 12, 2023
a6a610e
Update README to finalize scraper usage instructions
christianopperman Dec 12, 2023
0ca0b97
Add successful push to ElasticSearch image
christianopperman Dec 12, 2023
52a962b
Update UI to show the course name
a598504775 Dec 12, 2023
e44e5f5
UI updated to show course name--Fix link issue.
a598504775 Dec 12, 2023
79590f3
Remove GPT tab from Extension as code can't be called from it
christianopperman Dec 12, 2023
b0c2fd7
Resolve merge commits
christianopperman Dec 12, 2023
9f6ba73
Remove code related to GPT
a598504775 Dec 12, 2023
9a8a788
Update CS410_Fall2023_CourseProject_TeamCAHJ.png
a598504775 Dec 12, 2023
4451da0
Update README documentation
christianopperman Dec 13, 2023
9e1c85c
Update requirements.txt with ChatGPT Integration requirements
christianopperman Dec 13, 2023
7b04292
Remove old requirements.txt file
christianopperman Dec 13, 2023
a5714ea
Restructure ChatGPT integration for style
christianopperman Dec 13, 2023
218b082
Merge branch 'main' of https://github.com/christianopperman/CS410_Fal…
christianopperman Dec 13, 2023
4a8dc4f
Fix README images
christianopperman Dec 13, 2023
bea929e
Add Future Improvements section to README
christianopperman Dec 13, 2023
9574209
Add workflow diagram
christianopperman Dec 13, 2023
88e0153
Add Chrome Extension usage screenshots and resize images
christianopperman Dec 13, 2023
e9f9b96
Cleanup and removing comments
himangshu81 Dec 14, 2023
a6f1020
Finalize documentation and README
christianopperman Dec 15, 2023
d8c9cd0
Merge branch 'main' of https://github.com/christianopperman/CS410_Fal…
christianopperman Dec 15, 2023
2ad3460
Adding demo video to README
christianopperman Dec 15, 2023
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
Prev Previous commit
Next Next commit
Chrome extension - initial commit
  • Loading branch information
himangshu81 committed Nov 17, 2023
commit a4d325ee81d7b23fbcaeb9067845ec121b533ab0
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
*.iml
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# CourseProject

Please fork this repository and paste the github link of your fork on Microsoft CMT. Detailed instructions are on Coursera under Week 1: Course Project Overview/Week 9 Activities.


## Steps to load the extension in Chrome
1. Go to the Extensions page by entering chrome://extensions
2. Enable Developer Mode by clicking the toggle switch next to Developer mode.
3. Click the Load unpacked button and select the /extension directory.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions extension/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<script src='./js/search.js'></script>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Search Platform</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 50px;
}

input[type="text"] {
padding: 8px;
width: 300px;
}

input[type="submit"] {
padding: 8px 15px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}

input[type="submit"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<h2>CS410 Fall2023 TeamCAHJ</h2>
<h4>Search Coursera Lectures</h4>
<form action="/search" method="get">
<input type="text" id="search" name="q" placeholder="Search text...">
<br>
<input type="submit" value="Search" onclick="search()">
</form>
</body>
</html>
18 changes: 18 additions & 0 deletions extension/js/es_client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const { Client } = require('@elastic/elasticsearch')
const client = new Client({
cloud: {
id: '<cloud-id>'
},
auth: {
username: 'elastic',
password: 'changeme'
}
})


const result = await client.search({
index: 'my-index',
query: {
match: { hello: 'world' }
}
})
6 changes: 6 additions & 0 deletions extension/js/search.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

async function search(){
return {
"lecture" : "Week: 2, Lecture: Title: introduction-to-text-mining-and-analytics, Time: 8:22"
}
}
10 changes: 10 additions & 0 deletions extension/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "CS410_Fall2023_CourseProject_TeamCAHJ",
"description": "Base Level Extension",
"version": "1.0",
"manifest_version": 3,
"action": {
"default_popup": "index.html",
"default_icon": "CS410_Fall2023_CourseProject_TeamCAHJ.png"
}
}