#πŸ”’ How to run a code than runs on selenium

255 messages Β· Page 1 of 1 (latest)

wicked sluiceBOT
#

@calm scarab

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

calm scarab
#

how do i run a code

#

on python

#

or idk

#

....

stoic herald
#

!resources

wicked sluiceBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

stoic herald
#

Could you phrase your question better tho

#

and what have you tried so far

amber comet
#

i got 2 questions:

  1. why selenium, why not requests+bs4
  2. the only thing i know this could be used for conflicts with rule 5 are u sure thats not the case?
#

!rule 5

wicked sluiceBOT
#

5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.

calm scarab
#

also why does rule 5 gets involed here

amber comet
calm scarab
#

c'est quoi Γ§a?

#

kretΓ©n

amber comet
#

its a program to get data from a site

#

without an api

calm scarab
#

yeah idk whats that

#

scrapers?

#

idk

#

so can u help

amber comet
#

ok whats the goal?

calm scarab
#

ok so

#

so fafr

#

i installed python

#

and silenium

#

i think

amber comet
#

i dont know selenium

#

i can may solve it with requests and bs4 tho

calm scarab
#

wait

#

to run the code i need

#

will need to have the Selenium library installed and download the Chrome WebDriver executable (chromedriver)

#

if thats help

#

and python

amber comet
#

Download python from python.org i recommend 3.11.x bc the newest is not always supported make sure to select download pip and add to PATH and than do pip install selenium in console

calm scarab
#

ill send u what i downloaded wait

amber comet
#

Than see a tutorial on how to install cromedriver or ask someone else

calm scarab
#

bruh

#

its version 3.12.3

amber comet
calm scarab
#

i downloaded selenium

calm scarab
#

about this

#

i extracted

#

the zip

#

is that good or no

amber comet
calm scarab
#

ok no there was no zips sry

amber comet
calm scarab
#

i downloaded something that downloads the pytrhon

#

like a installer

#

it should say first at top modify then ,repair and then unistall right

amber comet
calm scarab
#

how do it?

amber comet
#

Only get a new version if the old one doesn't work

calm scarab
#

what should i do now

amber comet
calm scarab
#

unistall the installer?

amber comet
#

Don't have to do that but u can

calm scarab
#

i unistalled the 3.12.3 bootscrap pip

amber comet
#

What does it say if u write pip in the console and hit enter

calm scarab
#

'pip' is not recognized as an internal command
or external, an executable program or batch file.

#

it also said that when i installed pytghon

#

python

amber comet
#

Oh than start the installer

#

In modify mode i think it would help if u can list the modes

calm scarab
#

what do i do

amber comet
#

Start the installer.exe

calm scarab
#

i redownload it?

amber comet
#

If u deleted it yes

calm scarab
#

this right?

amber comet
#

Should be the one

calm scarab
#

ok

#

so

#

it says

#

install now or

#

customize installation

amber comet
#

Customise

calm scarab
#

also below it says add admin privelages

#

and

#

add pyhon.exe to path

amber comet
#

Add to PATH

calm scarab
#

i select than then customize?

amber comet
#

and look where u can check to add pip

amber comet
calm scarab
#

it selected all for me

amber comet
calm scarab
#

documentation, pip, tcl/tk, python test suite, py launcher

#

all those r selected

amber comet
calm scarab
#

there is advanced options

#

after clicking

amber comet
#

No need just continue to installation

calm scarab
#

also its 64 bits python

amber comet
#

Thats ok ur computer isn't 32bit right?

calm scarab
#

how to check

#

also im on windows 11

amber comet
amber comet
calm scarab
#

so what do i do

amber comet
#

Did the installation finish?

calm scarab
#

yes

amber comet
#

Than start a cmd

calm scarab
#

on the cmd prompt bar

amber comet
#

And type pip install selenium

calm scarab
#

ITS WORKING

#

i think its done

amber comet
#

Ok this is as far as i could help
I have to go to sleep and i dont know selenium so i cant help with that part even if i wanted to

#

Bye

hazy kite
#

What's the issue

calm scarab
hazy kite
#

What's the error?

calm scarab
#

there is no error

#

i need to have Selenium library installed and download the Chrome WebDriver executable (chromedriver).

#

and python

#

currently i have python installed and selenium

subtle sun
calm scarab
#

so now what

subtle sun
#

What happens when you run your code?

calm scarab
#

i never ran it

#

wdym

#

ur confusing

subtle sun
#

Try running your code.

calm scarab
#

on what

#

thats the thing bruh

subtle sun
#

What is the thing?

crimson shell
subtle sun
#

You're speaking in riddles, my friend.

crimson shell
#

moreover, go over the python basics

hazy kite
#

Yeah

calm scarab
#

have a cmd bar

#

and run my code

subtle sun
calm scarab
#

billy

#

where do u expect me to run it

#

i have nothing to run it

#

no applications

hazy kite
#

The command prompt

subtle sun
#

You installed Python in this thread.

calm scarab
#

the code needs Selenium library installed and download the Chrome WebDriver executable (chromedriver).

#

yes

#

i did

hazy kite
#

If you have chrome selenium will find it and you shouldn't need to download another driver separately

calm scarab
#

what should i do

hazy kite
#

At least firefox works like this, I don't use Chrome on selenium

crimson shell
#

learn the basics.

subtle sun
calm scarab
#

no

calm scarab
#

im getting help

#

this is why i created this

subtle sun
calm scarab
#

im gonna suicide

subtle sun
#

Don't joke like that.

crimson shell
calm scarab
#

nobody is helping me

subtle sun
calm scarab
crimson shell
#

we don't want to spoonfeed 10000 lines step by step and you not put in any effort either.

calm scarab
#

where do i acces the python prompt?

subtle sun
#

"Open the terminal in your operating system (as discussed previously in the Installation chapter) and then open the Python prompt by typing python3 and pressing [enter] key."

calm scarab
#

whats the defenition of terminal

subtle sun
#

See the previous chapter

calm scarab
subtle sun
calm scarab
#

everything

#

im french

#

i dont understand english

#

just tell me what to do in simple words

subtle sun
#

That's the French version

calm scarab
#

you'll do everything to make me read

subtle sun
#

I don't voice chat, if that's what you're asking

calm scarab
#

im asking u to make messages using that info but in smaller versions

subtle sun
#

That hardly seems fair.

calm scarab
#

its like me reading that page but faster

subtle sun
calm scarab
#

dude

#

please

#

it wont even work

#

its a black screen

crimson shell
#

the video is paused.

spare harbor
#

whats he trying to do

calm scarab
#

pausing videos make a black screen?

crimson shell
spare harbor
#

i can see that

calm scarab
#

look i understand yall doing a excellent job trying to make me learn but im dumb

subtle sun
spare harbor
#

that chatgpt for you

calm scarab
#

as krrt says

#

i want to get spoonfed

crimson shell
#

we don't do that here.

subtle sun
spare harbor
crimson shell
wicked sluiceBOT
#

10. Do not copy and paste answers from ChatGPT or similar AI tools.

crimson shell
#

oh well, it's a different one.

#

we don't tell people to go to chatgpt here.

spare harbor
#

it might be able to speak french idk

spare harbor
calm scarab
#

just let me do it my way

subtle sun
calm scarab
#

why would u need it to work

#

i just need python prompt code

#

i wont be coming after u saying the code wont work

spare harbor
#

wht?!

subtle sun
calm scarab
#

what?!

subtle sun
#

At this point, you're either trolling or want to be spoonfed. Neither of which we appreciate

calm scarab
#

how hard is this

spare harbor
#

very

calm scarab
#

i find this absurd

spare harbor
#

we 2

crimson shell
crimson shell
crimson shell
calm scarab
#

i only want to know how to download applications then clicking on the correct stuff

subtle sun
calm scarab
subtle sun
#

Do you not want to learn Python?

calm scarab
#

the code needs

#

Selenium library installed and download the Chrome WebDriver executable (chromedriver)

#

and also python ig

subtle sun
#

Is this your code?

calm scarab
spare harbor
#

thats scrapper prob

calm scarab
#

WHAT IS SCAPPER

subtle sun
#

Or something from somewhere else? Please share the link.

spare harbor
#

what language you speak?

calm scarab
#

i dont understand why you need the link of the site

subtle sun
calm scarab
#

i dont want to do that

#

idk why u want me to do that

#

just tell me where do i access the Python prompt to run my fully ready code

subtle sun
subtle sun
calm scarab
#

ur making me cry

spare harbor
#

hes trolling

calm scarab
#

im not trolling

#

I WANT HELP

#

screw this

wicked sluiceBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

πŸ”’ How to run a code than runs on selenium