From ed328d031036a880e48b82ea10ccdeaff80c30cf Mon Sep 17 00:00:00 2001 From: RamkumarMrj Date: Tue, 20 Apr 2021 14:24:32 +0530 Subject: [PATCH] bootstrap added --- core/templates/core/home.html | 51 ++++++++++++++---------- core/views.py | 2 +- requiremets.txt | 72 ---------------------------------- requirments.txt | Bin 0 -> 330 bytes 4 files changed, 31 insertions(+), 94 deletions(-) delete mode 100644 requiremets.txt create mode 100644 requirments.txt diff --git a/core/templates/core/home.html b/core/templates/core/home.html index 5eae20b..cbd37d5 100644 --- a/core/templates/core/home.html +++ b/core/templates/core/home.html @@ -1,10 +1,12 @@ + - + IPC Search Engine + -
-

Find the IPC Section Details

-
-
- - +
+

Find the IPC Section Details

+ +
+ + + +
+ + {% if result %} +
+ +

{{ result.temp_now }}

- - - {% if result %} -
- -

{{ result.temp_now }}

+ {% endif %}
- {% endif %} -
- - + + + \ No newline at end of file diff --git a/core/views.py b/core/views.py index 399eb4b..8453f77 100644 --- a/core/views.py +++ b/core/views.py @@ -22,7 +22,7 @@ def home(request): html_content = get_html_content(request) from bs4 import BeautifulSoup soup = BeautifulSoup(html_content, 'html.parser') - print(soup) + # print(soup) result = dict() # result['name_head'] = soup.find("div", attrs={"class": "qrShPb kno-ecr-pt PZPZlf mfMhoc hNKfZe"}).text result['temp_now'] = soup.find("div", attrs={"class": "BNeawe s3v9rd AP7Wnd"}).text diff --git a/requiremets.txt b/requiremets.txt deleted file mode 100644 index 1f769ce..0000000 --- a/requiremets.txt +++ /dev/null @@ -1,72 +0,0 @@ -appdirs==1.4.4 -asgiref==3.3.1 -beautifulsoup4==4.9.3 -bs4==0.0.1 -cachetools==4.1.1 -certifi==2020.6.20 -chardet==3.0.4 -distlib==0.3.1 -dj-database-url==0.5.0 -Django==3.1.7 -django-heroku==0.3.1 -docutils==0.16 -filelock==3.0.12 -google-api-core==1.22.1 -google-api-python-client==1.10.1 -google-auth==1.20.1 -google-auth-httplib2==0.0.4 -googleapis-common-protos==1.52.0 -googletrans==3.0.0 -gunicorn==20.0.4 -h11==0.9.0 -h2==3.2.0 -hpack==3.0.0 -hstspreload==2020.12.22 -html5lib==1.1 -httpcore==0.9.1 -httplib2==0.18.1 -httpx==0.13.3 -hyperframe==5.2.0 -idna==2.10 -lxml==4.6.3 -MouseInfo==0.1.3 -numpy==1.20.1 -oauth2client==4.1.3 -pbr==5.5.1 -Pillow==7.2.0 -protobuf==3.13.0 -psycopg2==2.8.6 -pyasn1==0.4.8 -pyasn1-modules==0.2.8 -PyAutoGUI==0.9.52 -pycparser==2.20 -PyDrive==1.3.1 -PyGetWindow==0.0.9 -Pygments==2.6.1 -PyMsgBox==1.0.9 -pyperclip==1.8.2 -pypiwin32==223 -PyRect==0.1.4 -PyScreeze==0.1.26 -python-decouple==3.4 -pythonnet==2.5.2 -PyTweening==1.0.3 -pytz==2020.1 -pywebview==3.4 -pywin32==228 -PyYAML==5.3.1 -requests==2.24.0 -rfc3986==1.4.0 -rsa==4.6 -six==1.15.0 -sniffio==1.2.0 -soupsieve==2.2.1 -sqlparse==0.4.1 -stevedore==3.3.0 -uritemplate==3.0.1 -urllib3==1.25.10 -vidstream==0.0.10 -virtualenv==20.4.3 -virtualenv-clone==0.5.4 -webencodings==0.5.1 -whitenoise==5.2.0 diff --git a/requirments.txt b/requirments.txt new file mode 100644 index 0000000000000000000000000000000000000000..d9b5cde06dcaee9d0be3c16b8a8747518bd9c398 GIT binary patch literal 330 zcmX|+OAdlS5JYQj;!!YwXxzB-BB&@R0pt^dhgaV;Fd;=I>DN_Vzi+BecNJ=t>82y! zRvS~IwN|?7p@4s?9-UDK8E9amG(Lpiq0smfe5wl1+PlTxX_*AdacN}Mp^yj*`rxz6sUsrMfjnlc0c literal 0 HcmV?d00001