The viewport refers to the visible area of the web page in your browser. Now a few words about the set_viewport_size function, but first I will take a deep breath and spend a few moments in my happy place. However, there will also be times when we will also want to use explicit waits as well. ![]() So this default waiting time will help avoid this problem. If your Selenium code gets ahead of the code behind the web page, you can get hit with the NoSuchElementException. Modern websites rely on code to run before all the elements are loaded. The implicitly_wait function is used to set a default time for the driver to wait before throwing a NoSuchElementException. I just found it to be the easiest to work with. So the nice thing is you can see the browser while the code is running and after. It will open a browser of your choice and automate it. Seems like a lot of imports, but they are all necessary. from selenium import webdriverįrom import Byįrom _chains import ActionChainsįrom import WebDriverWaitįrom import expected_conditions as ECįrom import Keys The full code can be found on the GitHub page here. Pandas was also the main tool for the data analysis with some graphs in Seaborn. However, I used the read_html() function from the Pandas module to extract the data from the web page. □ Selenium was great for logging in, navigating the calendar to move from day to day, and right-clicking items in the food diary to get to the detailed information. The tool I used for automation was Selenium. While I'm still on the fence on the paid version, the free version has placed Cronometer at the top of my food tracking apps.To scrape data off of an interactive site like cronometer, you need a tool that will automate interacting with the site. Yes this may seem juvenile but it would be nice to see a picture of accumulated consumption. While it can certainly track water as an added food, it's only one entry with total amount consumed vs a counter (# of waters consumed). What I don't care for in Cronometer is how it tracks water. Yes, I've tested MFP and quickly removed and cancelled my trial for the above reason. The above is offered from someone that is currently testing Cronometer (free) and is actually a paid subscriber of a third application that suffers similar issues as MFP. Cronometer, on the other hand, gives you the source for each entry. I firmly believe this is because of the crowd sourcing element of the database. Some entries counted net cards correctly, some didn't. Some food entries counted net carbs some didn't. In my testing, I was extremely frustrated with MFP when I would search for an egg and 50 entries showed up (exaggerating to make point). ![]() The biggest plus (in Cronometer) for me is the food database integrity. The process of copying an item from one day and adding it to the next day's list is sort of wonky, it took me a while to figure out how to do it. I realize there are thousands of breweries out there and it's an impossible task to keep up with all the little batches they create but I have had a hard time finding listings that I am confident are a good substitute for whatever it is I am drinking. ![]() The database is a bit weak in the area of alcoholic drinks. IMO, making sure the most simple version of a whole food item tops the search results would be a good improvement. I find myself having to scroll down through various versions of name brand or store brand listings for whole food items. The second thing on the list should be apple, cooked from fresh. I wish that if you type in a fruit or vegetable into the search bar, the first thing at the top of the list should be (for example) apple, raw. I haven't made much use of the recipe feature yet, but I did create a recipe for all my daily vitamin supplements and now I can make a single entry instead of five so that's great! The favorites list! Things I have regularly like coffee and half and half I can just grab from that list.Īdding something new is relatively simple (although I have nothing to compare to in all fairness)īeing able to scan the nutrition label on a new food works great and then you can save it as a custom food. I have only been using the app for a couple of months and it's the first time I've done calorie tracking so I'm definitely still early in the learning process.
0 Comments
Leave a Reply. |