Category : html

I’m Doing the tutorial (https://www.youtube.com/watch?v=dam0GPOAvVI&t=2412s) it was working nicely since there was a problem I don’t what.When I run the main.py Traceback (most recent call last): File "c:UsersadminDocumentsFlaskmain.py", line 6, in <module> app.run(debug=True) AttributeError: ‘NoneType’ object has no attribute ‘run’ PS C:UsersadminDocumentsFlask> And the website isn’t comming This site can’t be reached 127.0.0.1 refused to ..

Read more

I am using python,To display image to a page,i am getting the below errors GET http://127.0.0.1:8000/static/neo4j/avatar1.png 404 (Not Found) 127.0.0.1/:30 GET http://127.0.0.1:8000/static/neo4j/logo-png-type.png 404 (Not Found) 127.0.0.1/:123 GET http://127.0.0.1:8000/static/neo4j/avatar2.png 404 (Not Found) 127.0.0.1/:143 GET http://127.0.0.1:8000/static/neo4j/avatar6.png 404 (Not Found) 127.0.0.1/:133 GET http://127.0.0.1:8000/static/neo4j/avatar4.png 404 (Not Found) 127.0.0.1/:138 GET http://127.0.0.1:8000/static/neo4j/avatar5.png 404 (Not Found) given the directory and images are ..

Read more

Im using python for scraping the following page: alfabeta.surge.sh and i would like to get the link in (#home1 > div:nth-child(10) > table:nth-child(29) > tbody > tr:nth-child(1) > td:nth-child(3) > a ) Actually im doing this: import bs4, requests res = requests.get(‘https://alfabeta.surge.sh/’) soup = bs4.BeautifulSoup(res.text, ‘html.parser’) soup.find_all(‘a’)[23].attrs.get(‘href’) But if the position of the change i ..

Read more

Disclaimer: I am new to coding. I assume my issue is within my for loop, but I am not sure what to change even after browsing answered questions on stackoverflow. So, here is my code with regards to my question: csv_file = open(‘converter_scrape.csv’, ‘w’) csv_writer = csv.writer(csv_file) csv_writer.writerow([‘Category Name’, ‘Price’]) entries = soup.find_all(‘div’, class_="prices") for ..

Read more

Created a personal account in the online store made in Django. It looks like this But for some reason the button "Order details" is not pressed. It should look like this Personal account template: profile.html {% extends ‘base.html’ %} {% block content %} <h3 class="mt-3 mb-3">Заказы пользователя {{ request.user.username }}</h3> {% if not orders.count %} ..

Read more