Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Scrapy in Anaconda?

I am very new to programming and may have asked a very silly question. Kindly bear with me.

I have installed Anaconda, and I have installed Scrapy as a package. In Anaconda Navigator > Environments > roots, Scrapy can be found as a package.

Now I start to follow the Scrapy tutorial (Link) and come across the following instruction:

Creating a project

May I know, where in the Anaconda Natvigator should I click so that I have a "compiler" writing screen for me to enter the code?

Thanks!

like image 746
Jazz Brio Avatar asked Oct 29 '22 04:10

Jazz Brio


2 Answers

Maybe you should open " Anaconda Prompt " ----------a terminal using Linux Command line in your Anaconda directory: enter image description here

then, type scrapy startproject yourproject_name ,it will create a project in current directory. after you finish your scrapy_project, type : scrapy crawl the_name_in_your_class_of_yourcode , it will show the INFO and result !!!

like image 194
NightWind Avatar answered Nov 09 '22 12:11

NightWind


I used the Anaconda prompt, put the scrapy instructions there like this:

image anaconda prompt

like image 45
Leo Sheng Avatar answered Nov 09 '22 10:11

Leo Sheng