Skip to content

Commit

Permalink
Adding a few things to the structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ixt committed Jun 5, 2022
1 parent 25a0aa8 commit a55494f
Show file tree
Hide file tree
Showing 18 changed files with 35,155 additions and 2 deletions.
442 changes: 442 additions & 0 deletions glassdoor/SeleniumGlassdoor.py

Large diffs are not rendered by default.

8,535 changes: 8,535 additions & 0 deletions glassdoor/company_url_updated.csv

Large diffs are not rendered by default.

Empty file added glassdoor/data/.gitkeep
Empty file.
Empty file added glassdoor/old/.gitkeep
Empty file.
476 changes: 476 additions & 0 deletions glassdoor/old/glassdoorout.csv

Large diffs are not rendered by default.

221 changes: 221 additions & 0 deletions glassdoor/old/glassdoorout_clean.csv

Large diffs are not rendered by default.

2,571 changes: 2,571 additions & 0 deletions glassdoor/old/glassroom.csv

Large diffs are not rendered by default.

2,571 changes: 2,571 additions & 0 deletions glassdoor/old/glassroom.csv.backup

Large diffs are not rendered by default.

1,837 changes: 1,837 additions & 0 deletions glassdoor/old/glassroom_clean.csv

Large diffs are not rendered by default.

1,837 changes: 1,837 additions & 0 deletions glassdoor/old/glassroom_clean1.csv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions mbfc/combined.json

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions mbfc/mbfc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

categories=('activewear' 'tops' 'bottoms' 'denim' 'dresses' 'knitwear' 'outerwear' 'suits' 'basics' 'sleepwear' 'swimwear' 'maternity' 'plus-size' 'shoes' 'bags' 'accessories')

do_category(){
wget -nv https://directory.goodonyou.eco/_next/data/nAgaZnRF0uEQ1T4s4MapV/categories/$1.json -O cat_$1.json
}

do_brand(){
wget -nv "https://directory.goodonyou.eco/_next/data/nAgaZnRF0uEQ1T4s4MapV/brand/$1.json" -O brand_$1.json
}
pushd goodonyou
# pushd categories
# for category in ${categories[@]}; do
# do_category $category
# done
# jq -r .pageProps.category.brands[].id *.json | sort -u > ../brand_id_list.list
# popd
pushd brands
while read brand; do
do_brand $brand
done < ../brand_id_list.list
jq -r ".pageProps.brand | [.website, .id.id ] | @csv" *.json | sed -e "s@?[^\"]*@@g;s@http[s]*://@@g;s@/\"@\"@g" > ../goodforyou_web_brandid.csv
popd
popd
Loading

0 comments on commit a55494f

Please sign in to comment.