Skip to content
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

Fixed jaro_distance issue and macOS updates #13

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
e21400d
Fix preview gif
daijro Dec 28, 2021
a0abb5e
Add disclaimer
daijro Dec 28, 2021
578d8ac
Change default transp value
daijro Dec 28, 2021
c4dd7c5
Error handling
daijro Dec 28, 2021
68a655b
Create requirements.txt
daijro Dec 28, 2021
4ac5029
Update download link
daijro Dec 28, 2021
2593156
Update README.md
daijro Dec 28, 2021
d88428a
Use dropbox
daijro Feb 11, 2022
692e8fb
Fix #2
daijro Apr 11, 2022
cee78c5
Fix typo
daijro Apr 14, 2022
22fee1e
Add macOS support
LavamasterYT Sep 4, 2022
9e566c5
Update Scraper.swift
LavamasterYT Sep 4, 2022
aa1850c
Made code async and do catches
LavamasterYT Sep 5, 2022
ab6d3a1
Added loading indicator
LavamasterYT Sep 5, 2022
8966263
Window detection, OCR, and refactor
LavamasterYT Sep 7, 2022
22f8385
Merge pull request #3 from LavamasterYT/main
daijro Sep 7, 2022
7b2a248
Add settings, and shortcuts
LavamasterYT Sep 7, 2022
b4d82cf
Merge pull request #4 from LavamasterYT/main
daijro Sep 7, 2022
1d1f163
Remove unused files
daijro Sep 7, 2022
d00d329
Stability, and it now works
LavamasterYT Oct 19, 2022
96c125d
Fix scraper (Patch #5)
daijro Dec 20, 2022
6448fd6
Fix GUI scrolling
daijro Dec 20, 2022
aa5f747
Add character limit for long queries
daijro Dec 20, 2022
3a7b385
Escape search query
daijro Dec 20, 2022
dfe83f0
Bump certifi from 2021.10.8 to 2022.12.7
dependabot[bot] Dec 20, 2022
e7a3893
Bump lxml from 4.8.0 to 4.9.1
dependabot[bot] Dec 20, 2022
efc81fc
Bump pillow from 9.1.0 to 9.3.0
dependabot[bot] Dec 20, 2022
15bc715
Merge pull request #6 from daijro/dependabot/pip/certifi-2022.12.7
daijro Dec 20, 2022
4a4821e
Merge pull request #8 from daijro/dependabot/pip/pillow-9.3.0
daijro Dec 20, 2022
b8229ea
Merge pull request #7 from daijro/dependabot/pip/lxml-4.9.1
daijro Dec 20, 2022
27ecf23
Update macOS
LavamasterYT Dec 20, 2022
a61bee4
Merge branch 'daijro:main' into main
LavamasterYT Dec 20, 2022
2ea635e
Clean code, add Singleton, etc
daijro Dec 27, 2022
163b75f
Bump dependencies
daijro Dec 27, 2022
22de499
Add support for typing with window safety lock
daijro Dec 31, 2022
7f8018f
Added support for Num Lock and Caps Lock
daijro Dec 31, 2022
2c3de90
Merge threads/code cleanup
daijro Dec 31, 2022
d7933a4
Fixes for typing with window safety lock
daijro Dec 31, 2022
c1585cc
Add DuckDuckGo scraper
daijro Jan 4, 2023
f8f76e5
Update README.md
daijro Jan 4, 2023
bfbf2a0
Replace regex findall with search
daijro Jan 7, 2023
821be9b
Changed browser, solving merge conflicts
LavamasterYT Jan 18, 2023
0a6fe42
Merge branch 'main' of https://github.com/LavamasterYT/SearchifyX
LavamasterYT Jan 18, 2023
6f73686
Bug fixes
daijro Jan 27, 2023
dc5eb0f
Add ChatGPT scraper, fix Quizlet Scraper
daijro Jan 28, 2023
5bacb3e
Merge branch 'daijro:main' into main
LavamasterYT Jan 28, 2023
3a65162
Merge remote-tracking branch 'upstream/main'
LavamasterYT Nov 17, 2023
778b6e0
Removed obsolete jaro_distance function
LavamasterYT Nov 17, 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
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ __pycache__/
windoweffect/__pycache__/

# scraper.app must be rebuilt because of the amount of files
macOS/SearchifyX/scraper.app
macOS/SearchifyX/scraper/
macOS/build/
macOS/dist/
macOS/scraper.spec

# Xcode
xcuserdata/
xcuserdata

# General
.DS_Store
Expand Down
93 changes: 0 additions & 93 deletions fonts/OFL.txt

This file was deleted.

Binary file removed fonts/Poppins Medium.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion gui.pyw
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from tendo.singleton import SingleInstance

me = SingleInstance()

import ctypes
Expand All @@ -22,6 +21,7 @@ from PyQt5 import QtCore, QtGui, QtWidgets, uic
from PyQt5.QtCore import QObject, Qt, pyqtSignal
from PyQt5.QtWidgets import QApplication, QMainWindow
from win32api import GetMonitorInfo, MonitorFromPoint
import darkdetect

root = tk.Tk()
root.withdraw()
Expand Down
Binary file removed img/quizizz.png
Binary file not shown.
Binary file removed img/quizlet.png
Binary file not shown.
Binary file removed img/search.png
Binary file not shown.
100 changes: 85 additions & 15 deletions macOS/SearchifyX.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@

/* Begin PBXBuildFile section */
4214674528C1C5EF00E9D706 /* SearchifyXApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4214674428C1C5EF00E9D706 /* SearchifyXApp.swift */; };
4214674728C1C5EF00E9D706 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4214674628C1C5EF00E9D706 /* ContentView.swift */; };
4214674928C1C5F200E9D706 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4214674828C1C5F200E9D706 /* Assets.xcassets */; };
4214677028C1CFB600E9D706 /* Flashcard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4214676F28C1CFB500E9D706 /* Flashcard.swift */; };
4214677528C1D99300E9D706 /* Scraper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4214677428C1D99300E9D706 /* Scraper.swift */; };
4214677928C2887F00E9D706 /* scraper.app in Resources */ = {isa = PBXBuildFile; fileRef = 4214677828C2887F00E9D706 /* scraper.app */; };
423A30E82926193900071A8A /* WebViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 423A30E72926193900071A8A /* WebViewModel.swift */; };
423A30EE29268E6100071A8A /* NotesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 423A30ED29268E6100071A8A /* NotesView.swift */; };
423A30F029268E7700071A8A /* BrowserView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 423A30EF29268E7700071A8A /* BrowserView.swift */; };
423A30F229268FB000071A8A /* ScraperView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 423A30F129268FB000071A8A /* ScraperView.swift */; };
423A30F429268FED00071A8A /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 423A30F329268FED00071A8A /* ContentView.swift */; };
423A30F62926A9C400071A8A /* ViewLoadExt.swift in Sources */ = {isa = PBXBuildFile; fileRef = 423A30F52926A9C400071A8A /* ViewLoadExt.swift */; };
423A30F92926B65100071A8A /* BrowserToolbar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 423A30F82926B65100071A8A /* BrowserToolbar.swift */; };
423A30FB2926B70F00071A8A /* ScraperToolbar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 423A30FA2926B70F00071A8A /* ScraperToolbar.swift */; };
423AC30D290116FA00319B15 /* NSWebView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 423AC30C290116FA00319B15 /* NSWebView.swift */; };
42C95D932900657A008936E3 /* scraper in Resources */ = {isa = PBXBuildFile; fileRef = 42C95D922900657A008936E3 /* scraper */; };
42E9576F28C80FA300BF7B3B /* FloatingPanel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 42E9576E28C80FA300BF7B3B /* FloatingPanel.swift */; };
42E9579B28C84C0E00BF7B3B /* KeyboardShortcuts in Frameworks */ = {isa = PBXBuildFile; productRef = 42E9579A28C84C0E00BF7B3B /* KeyboardShortcuts */; };
42E9579D28C84C6900BF7B3B /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 42E9579C28C84C6900BF7B3B /* SettingsView.swift */; };
Expand All @@ -22,11 +30,19 @@
/* Begin PBXFileReference section */
4214674128C1C5EF00E9D706 /* SearchifyX.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SearchifyX.app; sourceTree = BUILT_PRODUCTS_DIR; };
4214674428C1C5EF00E9D706 /* SearchifyXApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchifyXApp.swift; sourceTree = "<group>"; };
4214674628C1C5EF00E9D706 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
4214674828C1C5F200E9D706 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4214676F28C1CFB500E9D706 /* Flashcard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Flashcard.swift; sourceTree = "<group>"; };
4214677428C1D99300E9D706 /* Scraper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Scraper.swift; sourceTree = "<group>"; };
4214677828C2887F00E9D706 /* scraper.app */ = {isa = PBXFileReference; lastKnownFileType = wrapper.application; path = scraper.app; sourceTree = "<group>"; };
423A30E72926193900071A8A /* WebViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebViewModel.swift; sourceTree = "<group>"; };
423A30ED29268E6100071A8A /* NotesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotesView.swift; sourceTree = "<group>"; };
423A30EF29268E7700071A8A /* BrowserView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowserView.swift; sourceTree = "<group>"; };
423A30F129268FB000071A8A /* ScraperView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScraperView.swift; sourceTree = "<group>"; };
423A30F329268FED00071A8A /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
423A30F52926A9C400071A8A /* ViewLoadExt.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewLoadExt.swift; sourceTree = "<group>"; };
423A30F82926B65100071A8A /* BrowserToolbar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrowserToolbar.swift; sourceTree = "<group>"; };
423A30FA2926B70F00071A8A /* ScraperToolbar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScraperToolbar.swift; sourceTree = "<group>"; };
423AC30C290116FA00319B15 /* NSWebView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NSWebView.swift; sourceTree = "<group>"; };
42C95D922900657A008936E3 /* scraper */ = {isa = PBXFileReference; lastKnownFileType = folder; path = scraper; sourceTree = "<group>"; };
42E9576E28C80FA300BF7B3B /* FloatingPanel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FloatingPanel.swift; sourceTree = "<group>"; };
42E9579C28C84C6900BF7B3B /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = "<group>"; };
42E9579E28C84DAC00BF7B3B /* Constants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -63,19 +79,67 @@
4214674328C1C5EF00E9D706 /* SearchifyX */ = {
isa = PBXGroup;
children = (
4214677828C2887F00E9D706 /* scraper.app */,
423A30F72926B57F00071A8A /* Toolbars */,
423A30EC2926198300071A8A /* Helpers */,
423A30EB2926197000071A8A /* Models */,
423A30EA2926195700071A8A /* Views */,
423A30E92926193F00071A8A /* WebView */,
42C95D922900657A008936E3 /* scraper */,
4214674428C1C5EF00E9D706 /* SearchifyXApp.swift */,
4214674628C1C5EF00E9D706 /* ContentView.swift */,
4214674828C1C5F200E9D706 /* Assets.xcassets */,
4214676F28C1CFB500E9D706 /* Flashcard.swift */,
4214677428C1D99300E9D706 /* Scraper.swift */,
42E9576E28C80FA300BF7B3B /* FloatingPanel.swift */,
42E9579C28C84C6900BF7B3B /* SettingsView.swift */,
42E9579E28C84DAC00BF7B3B /* Constants.swift */,
423A30F329268FED00071A8A /* ContentView.swift */,
);
path = SearchifyX;
sourceTree = "<group>";
};
423A30E92926193F00071A8A /* WebView */ = {
isa = PBXGroup;
children = (
423A30E72926193900071A8A /* WebViewModel.swift */,
423AC30C290116FA00319B15 /* NSWebView.swift */,
);
path = WebView;
sourceTree = "<group>";
};
423A30EA2926195700071A8A /* Views */ = {
isa = PBXGroup;
children = (
42E9579C28C84C6900BF7B3B /* SettingsView.swift */,
423A30ED29268E6100071A8A /* NotesView.swift */,
423A30EF29268E7700071A8A /* BrowserView.swift */,
423A30F129268FB000071A8A /* ScraperView.swift */,
);
path = Views;
sourceTree = "<group>";
};
423A30EB2926197000071A8A /* Models */ = {
isa = PBXGroup;
children = (
4214676F28C1CFB500E9D706 /* Flashcard.swift */,
);
path = Models;
sourceTree = "<group>";
};
423A30EC2926198300071A8A /* Helpers */ = {
isa = PBXGroup;
children = (
42E9576E28C80FA300BF7B3B /* FloatingPanel.swift */,
423A30F52926A9C400071A8A /* ViewLoadExt.swift */,
);
path = Helpers;
sourceTree = "<group>";
};
423A30F72926B57F00071A8A /* Toolbars */ = {
isa = PBXGroup;
children = (
423A30F82926B65100071A8A /* BrowserToolbar.swift */,
423A30FA2926B70F00071A8A /* ScraperToolbar.swift */,
);
path = Toolbars;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -140,8 +204,8 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
4214677928C2887F00E9D706 /* scraper.app in Resources */,
4214674928C1C5F200E9D706 /* Assets.xcassets in Resources */,
42C95D932900657A008936E3 /* scraper in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -153,11 +217,19 @@
buildActionMask = 2147483647;
files = (
4214677528C1D99300E9D706 /* Scraper.swift in Sources */,
423A30F62926A9C400071A8A /* ViewLoadExt.swift in Sources */,
423AC30D290116FA00319B15 /* NSWebView.swift in Sources */,
423A30EE29268E6100071A8A /* NotesView.swift in Sources */,
423A30F229268FB000071A8A /* ScraperView.swift in Sources */,
4214677028C1CFB600E9D706 /* Flashcard.swift in Sources */,
4214674728C1C5EF00E9D706 /* ContentView.swift in Sources */,
423A30F029268E7700071A8A /* BrowserView.swift in Sources */,
423A30E82926193900071A8A /* WebViewModel.swift in Sources */,
42E9579D28C84C6900BF7B3B /* SettingsView.swift in Sources */,
42E9579F28C84DAC00BF7B3B /* Constants.swift in Sources */,
423A30F429268FED00071A8A /* ContentView.swift in Sources */,
423A30FB2926B70F00071A8A /* ScraperToolbar.swift in Sources */,
4214674528C1C5EF00E9D706 /* SearchifyXApp.swift in Sources */,
423A30F92926B65100071A8A /* BrowserToolbar.swift in Sources */,
42E9576F28C80FA300BF7B3B /* FloatingPanel.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -289,7 +361,6 @@
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = SearchifyX/scraper.app;
DEVELOPMENT_TEAM = R5T6626VHW;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
Expand All @@ -300,7 +371,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.0;
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.teamaurous.SearchifyX;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -318,7 +389,6 @@
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_ASSET_PATHS = SearchifyX/scraper.app;
DEVELOPMENT_TEAM = R5T6626VHW;
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
Expand All @@ -329,7 +399,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 12.0;
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.teamaurous.SearchifyX;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1410"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4214674028C1C5EF00E9D706"
BuildableName = "SearchifyX.app"
BlueprintName = "SearchifyX"
ReferencedContainer = "container:SearchifyX.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4214674028C1C5EF00E9D706"
BuildableName = "SearchifyX.app"
BlueprintName = "SearchifyX"
ReferencedContainer = "container:SearchifyX.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4214674028C1C5EF00E9D706"
BuildableName = "SearchifyX.app"
BlueprintName = "SearchifyX"
ReferencedContainer = "container:SearchifyX.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading