Skip to content

Commit 002fa88

Browse files
author
Daniel
committed
important changes
1 parent edd7662 commit 002fa88

File tree

7 files changed

+56
-2
lines changed

7 files changed

+56
-2
lines changed

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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.

chromedriver.exe

12.2 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.

myproject/project_files/bot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def search_all(self):
104104
button.click()
105105

106106
def city(self):
107-
self.implicitly_wait(30)
107+
self.implicitly_wait(60)
108108
elements = self.find_elements(By.XPATH,
109109
'//p[@class="e1b25f6f7 ooa-1otyv8u-Text eu5v0x0"]'
110110
)

myproject/run.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
with Cars() as bot:
55
bot.land_first_page()
66
bot.accept_button()
7-
#bot.car_type(car='Auta małe')
7+
bot.car_type(car='Auta małe')
88
bot.car_brand(brand='Renault')
99
bot.price(min_price='0', max_price='15000')
1010
bot.years(min_year='2000', max_year='2010')
1111
bot.mileage(min_mileage='0', max_mileage='2000000')
1212
bot.search_all()
13+
print('there')
1314
# bot.city()
1415
# bot.info_car()
1516
# bot.pages(page=2)

requirements.txt

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

0 commit comments

Comments
 (0)