Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python - Scrapy - CSS selector
#2
It looks like the classes you're trying to use are created by javascript, but the data itself is available in the source.
One possibility you have is finding the selected option, e.g.:
'Car_Manufacturer': form.css('#car-manuf option[selected]::text').get(),
Reply


Messages In This Thread
Python - Scrapy - CSS selector - by Baggelhsk95 - Nov-07-2018, 01:57 PM
RE: Python - Scrapy - CSS selector - by stranac - Nov-07-2018, 04:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Div Class HTML selector in Python Artur 1 819 Mar-28-2024, 09:46 AM
Last Post: StevenSnyder
  Python Scrapy Date Extraction Issue tr8585 1 3,471 Aug-05-2020, 04:32 AM
Last Post: tr8585
  Python Scrapy tr8585 2 2,462 Aug-04-2020, 04:11 AM
Last Post: tr8585
  TDD/CSS & HTML testing - CSS selector (.has-error) makoseafox 0 1,872 May-13-2020, 07:41 PM
Last Post: makoseafox
  Downloading Images - Unable to find correct selector Brompy 4 3,142 Jan-22-2020, 04:54 PM
Last Post: snippsat
  Python - Scrapy Baggelhsk95 0 2,333 Apr-24-2019, 01:07 PM
Last Post: Baggelhsk95
  Python Scrapy ebay API Baggelhsk95 0 3,270 Nov-21-2018, 11:22 AM
Last Post: Baggelhsk95
  Python scrapy scraped_items Baggelhsk95 2 2,956 Nov-13-2018, 08:30 AM
Last Post: Baggelhsk95
  Python - Scrapy - Contains Baggelhsk95 3 4,628 Oct-27-2018, 03:42 PM
Last Post: stranac
  Python - Scrapy Login in Baggelhsk95 3 4,952 Oct-23-2018, 04:24 PM
Last Post: stranac

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020