The problems with your search strategy has been covered by comments and answers posted earlier. I am offering a solution for your problem which involves the use of regex library, along with the find_all() function call:
import requests from bs4 import BeautifulSoup import re res = requests.get("https://www.jobberman.com/jobs") soup = BeautifulSoup(res.text, "html.parser") company_name = soup.find_all("a", href=re.compile("/jobs\?"), rel="nofollow") for i in range(len(company_name)): print(company_name[i].text)
GRATIAS DEI NIGERIA LIMITED Balkaan Employments service Fun Science World NEIMETH INT'L PHARMACEUTICALS PLC Nkoyo Pharmaceuticals Ltd. ...
* Be the first to Make Comment