Jump to content

Recommended Posts

Posted

I volunteer with the WRAP (Wheelchair Ramp Accessibility Program), https://wrapiowa.org/. WRAP provides free labor to install wheelchair ramps to provide home access for those that need it. I order to provide accurate material cost estimates we manually copy prices from https://www.menards.com/main/ into an excel spreadsheet. I would like to automate this process with am AutoIt script but how to do it is over my head. I want to take a file with a list of 31 SKU’s and lookup and save the price in a file. Anyone out there that could help with this? Thanks! Ron

Posted

@RonTon  Welcome to AutoIt forum.  Unfortunately, we do not provide scripts on demand here.  We are trying to teach people how to program and help them when they face a problem.  However, since it is for a good cause, I will try to narrow your apprentissage to the best solution we have around. But for that I will need a bit more information.  Can you show (screen capture) the list you are copying from the web site to excel ?  Do you know if we could download a file or do we need to scrape the page to get the prices ?  If you could also provide the DOM of the page you are accessing when you copy prices, it would greatly help us.  Finally, we will need the exact URL you are using when you access the price list.

 

Posted

siding with @Nine above, i believe it would be helpful if you can confirm my understanding of your workflow:

1) you open your browser to https://www.menards.com/main/

2) you manually type an SKU number (or copy&paste from Excel) in the search box, then you press "Enter" or click the search button

3) you are redirected to the product page

4) you observe the price

5) you type the price in your Excel sheet

then you repeat steps 2-5 for each SKU number in your list.

if this is correct, then using the WebDriver UDF should provide you with all the automation you need. it does have a setup process and a learning curve; but once you get it running you'll find it very powerful.

if i somehow missed your intention, please describe your workflow in a more detailed fashion.

also, can you provide a few examples for SKU numbers from your list? i see the URL of a product page can accept SKU for a more direct access, which might come in handy.

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

WinPose - simultaneous fluent move and resize

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

Magic Math - a math puzzle

Demos:

Title Bar Menu - click the window title to pop-up a menu

 

Posted (edited)

Thank You, that's exactly what I want to do. I took a look at the link you listed and it is over my head. 

I have attached a text file containing the SKU numbers I am after.

 

SKU.txt

Edited by RonTon
Posted (edited)

Add them all 1 time to your basket then you can allways view the basket and have all information on 1 page

Automating the about 32 items is probably not worth the effort if you are a starter in programming

But maybe this logic helps could be you have to tweak some if they are not in building materials

https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1110627
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1110630
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1110643
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1110656
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1110669
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1110818
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1110821
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1110834
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1110847
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1110850
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1111024
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1111037
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1111040
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1111053
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1111066
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1111927
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1111930
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1111943
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1112214
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1112227
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1112265
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1113404
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1791401
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1891137
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1891138
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1891108
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1712760
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=2354000
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=2351760
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=1122047
https://www.menards.com/main/search.html?sf_categoryHierarchy=Building+Materials_5640&search=2271756
 

Edited by junkew

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...