I read that scrapy is a web crawling tool and beautiful soup is a library of scrapy. Someone said both are different and we can achieve the same task in beautifulsoup which is achieved by scrapy. Is beautifulsoup part of scrapy?
Beautiful soup is a library for HTML parsing and manipulation. It takes in one HTML document and allows you to navigate it and manipulate it with simple function calls.
Scrapy is a tool for managing downloads. It takes a URL, downloads the data at this URL, possibly parses this HTML (using any way you want, you can use beautiful soup for that), queues up more URLs to download and manages several downloaders in parallel.
Scrapy is the tool that manages downloading of many HTML documents in parallel, beautiful soup is a tool that parses one HTML document and can do interesting things with its content. You'll probably use both in combination for the task of crawling sites.