Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 09-26-2010, 10:38 AM   #1
marbs
Zealot
marbs began at the beginning.
 
Posts: 122
Karma: 10
Join Date: Jul 2010
Device: nook
Israeli stock market quotes

Ha Ha!
I have been asking for a lot of help, and now i can give back a bit. did this one on my own. totally.
its not the most elegant thing you've seen, but it does what it should. it gives you extensive data on Israeli stock prices. i have this one fetching the data on aaora company.

you start with creating an xml file with the stock you want to follow
copy the code below to a text file, add as meny items as you like. save it in a place that you can direct your recipe to (i save it in my public folder on dropbox). make sure the file is FILENAME.XML.
Spoiler:

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>מחירי המניות</title>
<link>http://www.bizportal.co.il/</link>
<description>רק בשביל למשוך את מחירי המניות</description>

<item>
<title>ציטוטי מניית אאורה</title>
<link>http://www.bizportal.co.il/shukhahon/bizcompquote.shtml?p_id=373019</link>
<description>אאורה</description>
</item>

Spoiler:
<item>
<title>דוגמה</title>
<link>http://www.bizportal.co.il/shukhahon...te.shtml?p_id=(stock id)</link>
<description>איזו מניה שתרצו</description>
</item>


</channel>
</rss>


now copy the recipe. dont forget to change the feed address to where ever you stored your XML file.
Spoiler:

Code:
class AdvancedUserRecipe1284558387(BasicNewsRecipe):
    title          = u'TA Stock Quotes, what you choose'
    __author__            = 'marbs'
    oldest_article = 7
    nojavascript= False
    max_articles_per_feed = 100
    cover_url      = 'http://money-talks.co.il/wp-content/uploads/2008/02/glasses_on_newspaper.jpg'
    feeds          = [(u'Stock Prices', u'XML ADDRESS')]
    remove_attributes = ['style']
    extra_css="body {direction: rtl;}"
    keep_only_tags    = [ dict(name='table',attrs={'id':[
                                   'bcc_main_data_table',
	               'bcc_volumes_data_area',
	               'bcc_deals_data_area',
	               ]}),
                                    dict(name='table',attrs={ 'class':['book_table' ]})]
                                    #style':['float: right;', 'float: left;'


your done. you have your new recipe.
i use it to follow the price of stocks i own. i get a daily update, just like in the paper. if my instructions are not clear, send me a privet msg.

now its back to getting help on my other recipes.

Last edited by marbs; 09-26-2010 at 11:21 AM.
marbs is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change single quotes to double quotes Elfwreck Workshop 16 04-26-2013 10:06 AM
Single quotes to double quotes? lunixer General Discussions 35 10-10-2010 05:47 AM
convert straight quotes to curly quotes alansplace Calibre 3 09-25-2010 03:51 PM
Supermodel Bar Refaeli's iPad Confiscated By Israeli Customs Lotus Esprit Apple Devices 20 05-24-2010 08:56 AM
Quotes novels.books Astak EZReader 4 10-26-2009 09:56 PM


All times are GMT -4. The time now is 04:42 AM.


MobileRead.com is a privately owned, operated and funded community.