“I couldn’t run this code, can someone help me?”
import requests
from bs4 import BeautifulSoup
# Define the search query
query = "suporte"
# Make the request to LinkedIn
response = requests.get("https://www.linkedin.com/jobs/search?keywords=" + query)
# Parse the HTML response
soup = BeautifulSoup(response.text, "html.parser")
# Find all the job listings
jobs = soup.find_all("li", class_="jobs-search-results__list-item")
# Print the job titles and URLs
for job in jobs:
title = job.find("h3", class_="base-search-card__title").text
url = job.find("a", class_="base-card__full-link")["href"]
print(title, url)
info: Deployment: 9dce20c2-fb19-4140-9ccb-004bf9458896 - 2023-09-29T15:10:39.418Z
info: Build: eeef9d11-123d-48cf-b44a-e5ea304d3825 - 2023-09-29T15:10:39.418Z
info: Connecting to builder - 2023-09-29T15:10:39.419Z
info: Deployment: 9dce20c2-fb19-4140-9ccb-004bf9458896 - 2023-09-29T15:10:39.418Z
info: Build: eeef9d11-123d-48cf-b44a-e5ea304d3825 - 2023-09-29T15:10:39.418Z
info: Connecting to builder - 2023-09-29T15:10:39.419Z
info: Builder connected - 2023-09-29T15:10:41.852Z
info: Installing packages - 2023-09-29T15:10:42.048Z
info: Skipping Build as no Build command set - 2023-09-29T15:10:42.191Z
info: Language - 2023-09-29T15:10:42Z
info: Pushing pid1 binary layer... - 2023-09-29T15:10:42Z
info: Created pid1 binary layer - 2023-09-29T15:10:43Z
info: Skipping Python layer creation - 2023-09-29T15:10:44Z
info: Skipping Node layer creation - 2023-09-29T15:10:44Z
info: Pushing hosting layer... - 2023-09-29T15:10:44Z
info: Pushing Repl layer... - 2023-09-29T15:10:44Z
info: Nix layers for this Repl are uncached. - 2023-09-29T15:10:44Z
info: Pushing nix-0 layer... - 2023-09-29T15:10:44Z
info: Created hosting layer - 2023-09-29T15:10:45Z
info: Created Repl layer - 2023-09-29T15:10:48Z
info: Pushing Repl (cache) layer... - 2023-09-29T15:10:48Z
info: Created Repl (cache) layer - 2023-09-29T15:10:49Z
info: Created nix-0 layer - 2023-09-29T15:11:21Z
info: uploading image for cached layer - 2023-09-29T15:11:21Z
info: pushed cache image manifest - 2023-09-29T15:11:21Z
info: pushed cache soci index manifest - 2023-09-29T15:11:22Z
info: uploading cached layer - 2023-09-29T15:11:22Z
info: succesfully uploaded cached layer - 2023-09-29T15:11:22Z
info: Pushed image manifest - 2023-09-29T15:11:23Z
info: Pushed soci index manifest - 2023-09-29T15:11:23Z
info: Creating Autoscale service - 2023-09-29T15:11:59.871Z
starting up user application
hostingpid1: an open port was not detected
error: The deployment failed to initialize due to a configuration or code error. Check the logs tab for more information. For additional support, please post on https://ask.replit.com/c/help/13 and a staff member will take a look. - 2023-09-29T15:15:35.757Z