skip to Main Content

Html – I keep getting a internal server error for my flask app for a web scraper

from flask import Flask, render_template from bs4 import BeautifulSoup import requests import pandas as pd app = Flask(__name__) @app.route("/") def job_scraper(): url01 = "https://www.linkedin.com/jobs/search?keywords=Python%20%28Programming%20Language%29&location=Las%20Vegas%2C%20Nevada%2C%20United%20States&geoId=100293800&currentJobId=3477751834&position=7&pageNum=1" url_request_01 = requests.get(url01) soup = BeautifulSoup(url_request_01.text, 'html.parser') job_title_pull = soup.find_all(class_="base-search-card__title") job_subtitle_pull = soup.find_all(class_="base-search-card__subtitle") job_location_pull = soup.find_all(class_="job-search-card__location")…

VIEW QUESTION

Unable to find text from the html content beautifulsoup

from bs4 import BeautifulSoup import re text = "<tr> <td style="width:127.5pt;padding:3.75pt 0in 3.75pt 0in" width="170"> <p class="MsoNormal"><span style="font-size:11.0pt">Job #<o:p></o:p></span></p> </td> <td style="padding:3.75pt 0in 3.75pt 3.75pt"> <p class="MsoNormal"><strong><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>TEST-12311</span></strong><span style="font-size:11.0pt"><o:p></o:p></span></p> </td> </tr>" soup = BeautifulSoup(text,"html.parser") print(soup) job_number = soup.find("span", string="Job #")…

VIEW QUESTION

Html – CSS Notation for a Scrapy Spider Script

I wrote the below python script to return the item name, price, and link for items listed on https://shop.doverstreetmarket.com/collections/shops-noah import scrapy class DSMUKSpider(scrapy.Spider): name = 'dsmuk' start_urls = ['https://shop.doverstreetmarket.com/collections/shops-noah'] def parse(self, response): for dsmuk_product in response.css('article.h-full'): try: yield { 'name':…

VIEW QUESTION
Back To Top
Search