Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
asgiref = "==3.5.0"
beautifulsoup4 = "==4.10.0"
bs4 = "==0.0.1"
certifi = "==2021.10.8"
charset-normalizer = "==2.0.11"
idna = "==3.3"
requests = "==2.27.1"
soupsieve = "==2.3.1"
sqlparse = "==0.4.2"
tzdata = "==2021.5"
urllib3 = "==1.26.8"
Django = "==4.0.2"

[dev-packages]

[requires]
python_version = "3.9"
2 changes: 1 addition & 1 deletion extractor/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def scrape(request):
# if form is submitted with post request then
if request.method == "POST":
url = request.POST.get("hero-field") # fecthing url from input tag
# validating inputted url
# validating the input url
if url.startswith("https") or url.startswith("http"):
get_images = ScrapeImages(url)
image_and_filename = get_images.get_all_images()
Expand Down
Loading