I am trying store the html code into variable called response using cmdline.execute as shown in below code ,but it is unavailable to store and program code breaks at scrapy shell, can anyone tell me how to store raw html to variable
import scrapy
from scrapy import cmdline
linkedinnurl = "https://stackoverflow.com/users/5597065/adnan-stab=profile"
response = cmdline.execute("scrapy shell https://stackoverflow.com/users/5597065/adnan-s?tab=profile".split()))
print(response)
requests.post, whereas this question seeks to store the result of an operation initiated bycmdline.execute. Completely different scenario.