From 6c294882488a821aac1ba8f7089658eb7a2f0282 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Rodrigues Date: Tue, 10 Oct 2023 15:22:29 -0300 Subject: [PATCH] =?UTF-8?q?Atualiza=C3=A7=C3=A3o=20no=20diret=C3=B3rio=20d?= =?UTF-8?q?e=20download?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/Extrator.py | 6 ++++-- package.json | 15 --------------- 2 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 package.json diff --git a/Code/Extrator.py b/Code/Extrator.py index a7597c1..1347d21 100644 --- a/Code/Extrator.py +++ b/Code/Extrator.py @@ -1,5 +1,5 @@ #Em caso de erro é necessário manipular o sleep, pois depende da velocidade da sua internet - +import os from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver import ActionChains @@ -8,7 +8,9 @@ from selenium.webdriver.common.keys import Keys from time import sleep -download_dir = "/" #coloque o caminho onde você deseja que o download seja feito +diretorio_atual = os.path.dirname(os.path.abspath(__file__)) + +download_dir = diretorio_atual + "/pdfs" #coloque o caminho onde você deseja que o download seja feito options = webdriver.ChromeOptions() diff --git a/package.json b/package.json deleted file mode 100644 index f1d24cc..0000000 --- a/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "2023-2-squad04", - "version": "1.0.0", - "description": "", - "main": "index.js", - "directories": { - "doc": "docs" - }, - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "keywords": [], - "author": "", - "license": "ISC" -}