katelynnm 1 Posted October 14, 2013 Report Share Posted October 14, 2013 I'm creating a bot that goes through a list of URLs in one column, saves the fastest suggested route in google maps to the next column, and then saves a screenshot of the map to the third column. I'm having the hardest time trying to save an image to a table cell. Is there any way to go about this? Any help would be greatly appreciated! Here is my code: navigate("maps.google.com", "Wait") click(<id="d_launch">, "Left Click", "No") create table from file("C:\\Users\\Katelynn\\Desktop\\addresses.txt", &my table) set(#row_num, 0, "Global") clear list(%places) loop($table total rows(&my table)) { type text(<id="d_d">, "Current Location", "Standard") type text(<id="d_daddr">, $table cell(&my table, #row_num, 0), "Standard") click(<name="btnG">, "Left Click", "No") wait for browser event("Everything Loaded", "") set table cell(&my table, #row_num, 1, $scrape attribute($element offset(<class="dir-altroute-inner">, 0), "innertext")) change attribute(<id="d_d">, "value", $nothing) change attribute(<id="d_daddr">, "value", $nothing) increment(#row_num) } save to file("C:\\Users\\Katelynn\\Desktop\\googlemaps.csv", &my table) Quote Link to post Share on other sites
HelloInsomnia 1103 Posted October 14, 2013 Report Share Posted October 14, 2013 CSV is in plain text so you can't store images. But what you can do is save the image to a folder and reference it via the CSV file (like: C:\Users\Katelynn\Desktop\Map Images\image1.png) Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted October 14, 2013 Report Share Posted October 14, 2013 Or you can use this... https://developers.g...llery/linechart TC Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.