diff --git a/README.md b/README.md index 24db56e..8ac96f7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@

install Chrome Dan Chromedriver terlebih dahulu

Debian/Linux -``` +```bash > sudo apt install tesseract-ocr > pip3 install -r requirements.txt > python3 main3.py @@ -10,7 +10,7 @@ Windows
install microsoft visual C++ 14.0
Tesseract : Link -``` +```dos > pip install python-magic-bin > pip install -r requirements.txt > python main3.py diff --git a/lib/__pycache__/brainly.cpython-38.pyc b/lib/__pycache__/brainly.cpython-38.pyc index e0c6802..15f51bb 100644 Binary files a/lib/__pycache__/brainly.cpython-38.pyc and b/lib/__pycache__/brainly.cpython-38.pyc differ diff --git a/lib/brainly.py b/lib/brainly.py index 059a040..cf24d6f 100755 --- a/lib/brainly.py +++ b/lib/brainly.py @@ -12,7 +12,7 @@ def brainly(url): url : string e.g brainly("https://brainly.co.id/tugas/2754169") ''' - headers={'user-agent':"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36"} + headers={'user-agent':"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4183.102 Safari/537.36"} get=requests.get(url, headers=headers) bs=BeautifulSoup(get.text,'html.parser') Tangg=bs.find_all('span',class_='sg-text sg-text--xsmall sg-text--gray-secondary')[0]('time')[0]['title']