Sep-13-2018, 05:00 PM
Why are you messing with pipenv?
it's okay but all you need to test code in virtual environment is in my post with venv that's build into Python.
If i want to test this code isolatet in virtual environment that i made in my previous post.
From cmd:
and have @Larz60+ writing all code for you.
Web-Scraping part-1
it's okay but all you need to test code in virtual environment is in my post with venv that's build into Python.
If i want to test this code isolatet in virtual environment that i made in my previous post.
# web_title from bs4 import BeautifulSoup import requests url = 'https://www.python.org/' url_get = requests.get(url) soup = BeautifulSoup(url_get.content, 'lxml') print(soup.select('head > title')[0].text)I save
web_title.py
in my_env and Activate.From cmd:
# Activate E:\div_code\my_env>E:\div_code\my_env\Scripts\Activate # Now environment is active see (my_env) # Run code (my_env) E:\div_code\my_env>python web_title.py Welcome to Python.org (my_env) E:\div_code\my_env>
tjnichols Wrote:I truly want to learn this!Then don't start with a big web-scraping project that look more like job descrtion,
and have @Larz60+ writing all code for you.
Web-Scraping part-1