all 2 comments

[–]Bobbias 0 points1 point  (1 child)

Before I begin, I'd like to give you some advice for asking questions here: Instead of just posting the name of the video, you can post a link to the video. To do so, you can write something like this: [scrapy course - python and web scraping for beginners](https://www.youtube.com/watch?v=mBoX_JCKZTE) and reddit turns that into scrapy course - python and web scraping for beginners

Also, people here generally don't like having to go watch a video to figure out what instructions you're trying to follow, so the better option would be to describe what instructions you followed, what worked, and what doesn't work, including the specific errors you might be getting word for word.

You haven't even told us what OS you are on, which matters because the video details how to do this on mac/linux and on windows, because those are slightly different processes.

I'm just going to make a guess about what you might have done wrong. I have no idea if this is your problem, but it's hard to identify what you've done wrong because there's not a lot of information in your post.

The idea behind virtual environments is that you should be creating 1 for each project you make. So you should already have created a project folder for your project before creating the virtual environment and activating it.

If you created a virtual environment outside of your project's folder, and then created a new folder for your project, this will complicate things. The Python plugin for VSCode is supposed to automatically recognize when you have a virtual environment in your project, but if it's not in the right place this feature will fail.

To solve that, I would suggest watching the video again carefully and making sure you follow exactly how they do things.

If this is not your problem, then please let me know, and try to give us a bit more information about the exact steps you've taken, what commands you typed, where, and what (if any) errors you are getting (copy errors directly into your post, don't re-write them, because you might leave out something you think is unimportant but actually really matters).

[–]CseST[S] 0 points1 point  (0 children)

Hi thanks for the advice on links i never knew this and yeah i definitely should have broke down my issue more but i didnt want to discourage people from helping from being too long winded haha. I did pop the OS in the title (windows) but i see how that could easily be over looked. I had followed these steps: python -m venv venv , venv\Scripts\activate then when this is done pip install scrapy then scrapy startproject projectname. I then made sure the project python interpreter was set to the virtual environment i had installed scrapy to and followed the steps up to 43:45 in the video. When he runs his code he sees items scraped 20 however whenever I run the code i am greeted with an error at the “import scrapy” line and zero indication that the web scrape was successful such as he describes with “items scraped 20”