File tree 7 files changed +56
-2
lines changed
7 files changed +56
-2
lines changed Original file line number Diff line number Diff line change
1
+ ** SELENIUM BOT ON PAGE 'https://www.otomoto.pl '**
2
+
3
+ * not everything finished yet, but...*
4
+
5
+ In my program user can:
6
+
7
+ - select car type:
8
+ 0 . (none)
9
+ 1 . Auta małe
10
+ 2 . Auta miejskie
11
+ 3 . Coupe
12
+ 4 . Kabriolet
13
+ 5 . Kombi
14
+ 6 . Kompakt
15
+ 7 . Minivan
16
+ 8 . Sedan
17
+ 9 . SUV
18
+ - select car brand
19
+ - select car price
20
+ - select car's year searching
21
+ - select car mileage
22
+ - * not yet* :
23
+ <!-- - print car city
24
+ - print info about car
25
+ - change pages -->
26
+
27
+ I tried different ways to find data.
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def search_all(self):
104
104
button .click ()
105
105
106
106
def city (self ):
107
- self .implicitly_wait (30 )
107
+ self .implicitly_wait (60 )
108
108
elements = self .find_elements (By .XPATH ,
109
109
'//p[@class="e1b25f6f7 ooa-1otyv8u-Text eu5v0x0"]'
110
110
)
Original file line number Diff line number Diff line change 4
4
with Cars () as bot :
5
5
bot .land_first_page ()
6
6
bot .accept_button ()
7
- # bot.car_type(car='Auta małe')
7
+ bot .car_type (car = 'Auta małe' )
8
8
bot .car_brand (brand = 'Renault' )
9
9
bot .price (min_price = '0' , max_price = '15000' )
10
10
bot .years (min_year = '2000' , max_year = '2010' )
11
11
bot .mileage (min_mileage = '0' , max_mileage = '2000000' )
12
12
bot .search_all ()
13
+ print ('there' )
13
14
# bot.city()
14
15
# bot.info_car()
15
16
# bot.pages(page=2)
Original file line number Diff line number Diff line change
1
+ async-generator == 1.10
2
+ attrs == 22.1.0
3
+ certifi == 2022.6.15
4
+ cffi == 1.15.1
5
+ click == 8.1.3
6
+ colorama == 0.4.5
7
+ distlib == 0.3.6
8
+ filelock == 3.8.0
9
+ greenlet == 1.1.3
10
+ h11 == 0.13.0
11
+ idna == 3.3
12
+ itsdangerous == 2.1.2
13
+ MarkupSafe == 2.1.1
14
+ outcome == 1.2.0
15
+ platformdirs == 2.5.2
16
+ pycparser == 2.21
17
+ PySocks == 1.7.1
18
+ selenium == 4.4.3
19
+ sniffio == 1.3.0
20
+ sortedcontainers == 2.4.0
21
+ trio == 0.21.0
22
+ trio-websocket == 0.9.2
23
+ urllib3 == 1.26.12
24
+ virtualenv == 20.16.4
25
+ Werkzeug == 2.2.2
26
+ wsproto == 1.2.0
You can’t perform that action at this time.
0 commit comments