web

How to make output from web scraping python selenium in div class to output text

How to make output from web scraping python selenium in div class to output text Question: This is my Code ` from attr import attr import requests from bs4 import BeautifulSoup import csv datas = [] key = ‘sepatu’ jenis = ‘teplek’ url = ‘https://website.com/search/?term={}+{}’.format(key,jenis) headers = { ‘user-agent’ : ‘Mozilla/5.0 (X11; Linux x86_64; rv:106.0) …

Total answers: 2

Django imagefield isn't showing any photo in the template

Django imagefield isn't showing any photo in the template Question: I’m working on a bookstore using Django. I’m trying to save each book’s cover in each book created by the user using imagefield. I implemented every step in Django documentation about using imagefield but it doesn’t work. settings.py(in main project): MEDIA_DIR = os.path.join(BASE_DIR,’media’) MEDIA_ROOT = …

Total answers: 2

Get in python what web server is used by a website

Get in python what web server is used by a website Question: How can I know if a website is using apache, nginx or other and get this information in python? Thanks in advance Asked By: Ensorid || Source Answers: This information if available is given in the header of the response to a HTTP …

Total answers: 1

Python: Scraping a Jobs Portal Site

Python: Scraping a Jobs Portal Site Question: I just started learning how to use Python to explore scraping a jobs portal site – so please bear with me as I may ask very fundamental questions. Situation: I’ve managed to build out the following lines import pandas as pd from bs4 import BeautifulSoup from selenium import …

Total answers: 1

Python Django or Flask for web development?

Python Django or Flask for web development? Question: I have intermediate Python skills and want to learn web development. Should I start with Django or Flask? When I search for answers I only see benefits or downsides of them, but not anyone saying which one is better. And since I don’t have any experience, I …

Total answers: 3

How to store user specific data in Django

How to store user specific data in Django Question: In Django, How can we store user specific data? I’m trying to creating a django web app, where user needs to remember the order of random sequence fetched from database. I have two functions in my views, home and result I tried to store random sequence …

Total answers: 1

Eel – ask for directory input

Eel – ask for directory input Question: I am developing modern-looking local app in Python with Eel and I want to open OS’s default dialog to select directory. But I have found that Eel does not provide that. I have tried: dialog from HTML/JS, but browser provides just dialog for file/s selection. local dialogs from …

Total answers: 1

Python Web Extraction strip append bs4 beauitfulsoup

Python Web Extraction strip append bs4 beauitfulsoup Question: How can I extract all the company names in the example? The first three return without an issue, but when then the issue comes along. import requests from bs4 import BeautifulSoup r = requests.get(‘https://remote.co/remote-jobs/developer/’) s = BeautifulSoup(r.text,’lxml’) jobs = s.find(‘div’,{‘class’:’card bg-white m-0′}) jobs_listed = jobs.select(‘p’,{‘class’:’m-0′}) empty = …

Total answers: 1