Hello I'm a little newer to python inside Alteryx I do have some experience with python outside of Alteryx and am somewhat good with Alteryx I have a question about using Python and Alteryx together.
I created python code (using PyCharm) that goes to a webpage and downloads an excel file to a folder. It uses selenium, os, and time functions in the code.
Really what I'm looking to do is to have that Python code to run before the Alteryx workflow to download the file and then the workflow will look in that folder directory find that file and use it in the workflow I have.
The Python code doesn't really need to output anything into the workflow im just looking to make it simple....
Ideally what im looking to do is we have other people on our team that run the workflows right now we have to go to a couple different websites and download files then put them in a folder and then we run the Alteryx workflow that finds the files in that directory. What i did is created a Python script to go to all the webpages get the files and put them in that folder. Then i want the Alteryx workflow to run to get those files and use them in the workflow. that way someone else on my team can just hit run and it will run the python code to get the files then the Alteryx workflow to run the workflow.
im just wondering if this is possible to have the python script inside the python tool run FIRST before the rest of the workflow.
Also is it even possible to use selenium in the python tool in the workflow and just have the python tool in its own container not connected to anything?
Also another question for the packages that have to be installed do i have to have the Package.installPackages(['selenium']) in there everytime the workflow is ran or once its installed is it installed for good an i can just use the from selenium import webdriver in the python tool?
just looking for a little help on this if something like this is possible?
thank you