Skip to content

Commit 8a607fd

Browse files
committed
Update headless option for Chrome driver and fix directory order in JSON generation script
1 parent 36a6bfc commit 8a607fd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

IMDb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
def get_driver():
4545
chrome_options = Options()
46-
chrome_options.add_argument("--headless")
46+
chrome_options.add_argument("--headless=new")
4747
chrome_options.add_argument("--no-sandbox")
4848
chrome_options.add_argument("--disable-dev-shm-usage")
4949
chrome_options.add_argument("--disable-gpu")

generate.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,17 @@ fi
2323
echo -e "${GREEN}'README.md' file generated.${NC}"
2424
echo ""
2525
echo -e "${GREEN}JSON file(s) are being generated.${NC}"
26+
27+
# Generate JSON files from CSV
2628
cd data/top50 || exit 1
2729
csvtojson movies.csv >movies.json
2830
csvtojson shows.csv >shows.json
2931
cd "${ROOT_DIR}" || exit 1
30-
cd data/top250 || exit 1
32+
cd data/popular || exit 1
3133
csvtojson movies.csv >movies.json
3234
csvtojson shows.csv >shows.json
3335
cd "${ROOT_DIR}" || exit 1
34-
cd data/popular || exit 1
36+
cd data/top250 || exit 1
3537
csvtojson movies.csv >movies.json
3638
csvtojson shows.csv >shows.json
3739
echo ""

0 commit comments

Comments
 (0)