I have the following HTML structure
I want to extract all the links with the class:dev-link
<a class="dev-link" href="mailto:info@jourist.com" rel="nofollow" title='Photoshoot"</a>
I am using the below code to extract the link in scrapy
response.css('.dev-link::attr(href)').extract()
I am getting the correct output but is this the right way to use css selectors??
As you can see in Scrapy Documentation there are two methods to scrap data, CSS Selector and XPath Selector both are works correctly but XPath needs some practice to get expert, in my opinion, Xpath is more power in special cases you can scrap data easier that CSS selector ( but of course you can get them with CSS selector too),
what you did is correct
link = response.css('.dev-link::attr(href)').extract_first()
and also you can get it with the following too
link = response.xpath('/[contains(@class,’dev-link’)]/@href').extract_first()
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I have a string like this ("Theres loads of adventures to be had here;\nYou'll get your own Kobémon\nand get to catch more!") in myJSON file and when I read from it into the python file and into a Tkinter textbox I get "é" instead of é
how i said in the title, i want the password to be hashed when is savedIts possible with this?
I want to use a python telegram bot to watch messages and send or receive messages from group and process them but I couldn't find any resource for this on the Internetis there any resource to show how to use python-telegram-bot package to use a telegram...
On my tree view I should show the total (last line) of a specific fieldwith a float field it works with no problem but as the field is a string it doesn't