We certainly understand how frustrating it can be when your rates do not get pulled properly the first time. The most common cause for this situation is an outdated 'xpath' within the rate updater instructions. The good news is that correcting the situation requires just a minor change.
Looking at the following sample CD Bot configuration:
strategy :mechanize
visit 'https://www.yourcudomain.org/rates/'
grab 'cd:6months:0-999.99balance', '//*[@id="post-166"]/section/table[10]/tr[2]/td[4]'
The instructions are telling the CD Bot to visit 'https://www.yourcudomain.org/rates/' and pull the APY for 'cd:6months:0-999.99balance' using xpath '//*[@id="post-166"]/section/table[10]/tr[2]/td[4]'.
Everything looks great except when you hit 'Save', you get the following error:
It appears the CD Bot is not finding any rate (APY) within the 'xpath' and 'URL' specified on the instructions. In other words, the CD Bot couldn't find a rate at that exact 'xpath' location within the URL specified.
By following Step 2.4 of your 'Automatic Rates Updater' Guide it appears the correct 'xpath' for this rate tier ('cd:6months:0-999.99balance') is in fact '//*[@id="dividend-rate s10"]/tbody/tr[2]/td[4]'.
Take a closer look at the different between the xpath on our original instructions and the correct xpath:
Original XPath: '//*[@id="post-166"]/section/table[10]/tr[2]/td[4]'
Correct XPath: '//*[@id="dividend-rate s10"]/tbody/tr[2]/td[4]'
By continuing to follow your'Automatic Rates Updater' Guide, we replace the original xpath with the correct xpath and hit 'Save'.
And voila! Your CD Bot is now pulling your rate(s) correctly from your Website!
Reach out to us via contact[at]shastic[dot]com if you have any questions.
Comments
0 comments
Please sign in to leave a comment.