Skip to content
This repository has been archived by the owner on Dec 25, 2022. It is now read-only.

Commit

Permalink
README Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Krypton-Byte committed Oct 14, 2020
1 parent abd96e4 commit a9bdb42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<p> install Chrome Dan Chromedriver terlebih dahulu</p>

<b>Debian/Linux</b>
```
```bash
> sudo apt install tesseract-ocr
> pip3 install -r requirements.txt
> python3 main3.py
```
<b>Windows</b><br>
install microsoft visual C++ 14.0<br>
Tesseract : <a href="http://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-setup-4.00.00dev.exe"> Link</a>
```
```dos
> pip install python-magic-bin
> pip install -r requirements.txt
> python main3.py
Expand Down
Binary file modified lib/__pycache__/brainly.cpython-38.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/brainly.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit a9bdb42

Please sign in to comment.