Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Zhai, Zirun
Clickerance
Commits
a0c9d4cd
Commit
a0c9d4cd
authored
Oct 06, 2020
by
Clara Stoddart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed URL string query bug
parent
8dbf95af
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
128 additions
and
200 deletions
+128
-200
content.js
content.js
+2
-1
database-population/out/production/database-creation/CSVReading.class
...ulation/out/production/database-creation/CSVReading.class
+0
-0
database-population/src/CSVReading.java
database-population/src/CSVReading.java
+1
-1
webscraping/6-October-2020-data.csv
webscraping/6-October-2020-data.csv
+125
-198
No files found.
content.js
View file @
a0c9d4cd
...
...
@@ -15,6 +15,7 @@ var dietNumSet = false;
// }
function
checkAllergen
(
product
)
{
console
.
log
(
product
);
var
promise
=
new
Promise
(
function
(
resolve
,
reject
)
{
var
xhr
=
new
XMLHttpRequest
();
var
result
;
...
...
@@ -25,7 +26,7 @@ function checkAllergen(product) {
}
};
xhr
.
onerror
=
()
=>
reject
(
xhr
.
status
);
xhr
.
open
(
"
GET
"
,
"
http://localhost/script.php?product=
"
+
product
+
"
&dietNum=
"
+
dietNum
,
true
);
xhr
.
open
(
"
GET
"
,
"
http://localhost/script.php?product=
"
+
(
encodeURIComponent
(
product
))
+
"
&dietNum=
"
+
dietNum
,
true
);
xhr
.
send
();
});
return
promise
;
...
...
database-population/out/production/database-creation/CSVReading.class
View file @
a0c9d4cd
No preview for this file type
database-population/src/CSVReading.java
View file @
a0c9d4cd
...
...
@@ -15,7 +15,7 @@ import java.util.*;
*/
public
class
CSVReading
{
private
static
String
csvFile
=
"C:\\Clickerance\\chrome-groceries-extension\\webscraping\\
25-June
-2020-data.csv"
;
private
static
String
csvFile
=
"C:\\Clickerance\\chrome-groceries-extension\\webscraping\\
6-October
-2020-data.csv"
;
private
static
final
String
TABLE_NAME
=
"ProductsIngredients"
;
enum
Ingredient
{
...
...
webscraping/6-October-2020-data.csv
View file @
a0c9d4cd
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment