pstuteville-scrubyt 0.4.31 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +23 -23
- data/VERSION +1 -1
- metadata +20 -500
- data/examples/README.txt +0 -1
- data/examples/events/delta/input.html +0 -682
- data/examples/events/delta/test.rb +0 -16
- data/examples/misc/auto_regex/input.html +0 -22
- data/examples/misc/auto_regex/test.rb +0 -14
- data/examples/misc/compound_example/advanced/test.rb +0 -11
- data/examples/misc/compound_example/advanced/tricky_compound.html +0 -9
- data/examples/misc/compound_example/regexp/regexp_compound.html +0 -17
- data/examples/misc/compound_example/regexp/test.rb +0 -11
- data/examples/misc/compound_example/simple/compound.html +0 -5
- data/examples/misc/compound_example/simple/test.rb +0 -11
- data/examples/misc/detail_page/detailpage.html +0 -6
- data/examples/misc/detail_page/index.html +0 -9
- data/examples/misc/detail_page/test.rb +0 -17
- data/examples/misc/google/test.rb +0 -39
- data/examples/misc/identical_examples/data_extractor_export.rb +0 -12
- data/examples/misc/identical_examples/input.html +0 -16
- data/examples/misc/identical_examples/test.rb +0 -15
- data/examples/misc/immediate_attribute_extraction/data_extractor_export.rb +0 -10
- data/examples/misc/immediate_attribute_extraction/input.html +0 -16
- data/examples/misc/immediate_attribute_extraction/test.rb +0 -14
- data/examples/misc/multiple_examples/input.html +0 -7
- data/examples/misc/multiple_examples/test.rb +0 -22
- data/examples/misc/on_click_next/next_page_link.rb +0 -42
- data/examples/misc/on_click_next/page_1.html +0 -10
- data/examples/misc/on_click_next/page_2.html +0 -10
- data/examples/misc/on_click_next/page_3.html +0 -7
- data/examples/misc/rubycorner/test.rb +0 -29
- data/examples/misc/rubyforge_login/test.rb +0 -30
- data/examples/misc/tables/ambigous_records/input.html +0 -17
- data/examples/misc/tables/ambigous_records/test.rb +0 -37
- data/examples/misc/tables/another_plain_table/input.html +0 -15
- data/examples/misc/tables/another_plain_table/test.rb +0 -25
- data/examples/misc/tables/complex_table/input.html +0 -45
- data/examples/misc/tables/complex_table/test.rb +0 -30
- data/examples/misc/tables/grab_rows/input.html +0 -20
- data/examples/misc/tables/grab_rows/test.rb +0 -30
- data/examples/misc/tables/plain_table/input.html +0 -39
- data/examples/misc/tables/plain_table/test.rb +0 -35
- data/examples/misc/tables/plain_table_morepages/2.html +0 -38
- data/examples/misc/tables/plain_table_morepages/3.html +0 -33
- data/examples/misc/tables/plain_table_morepages/input.html +0 -40
- data/examples/misc/tables/plain_table_morepages/test.rb +0 -32
- data/examples/misc/tables/plain_table_morepages_with_image/2.html +0 -40
- data/examples/misc/tables/plain_table_morepages_with_image/3.html +0 -33
- data/examples/misc/tables/plain_table_morepages_with_image/images/right_arrow.png +0 -0
- data/examples/misc/tables/plain_table_morepages_with_image/input.html +0 -42
- data/examples/misc/tables/plain_table_morepages_with_image/test.rb +0 -32
- data/examples/misc/tables/test_select_indices/input.html +0 -46
- data/examples/misc/tables/test_select_indices/test.rb +0 -55
- data/examples/misc/xpath_example_type/input.html +0 -15
- data/examples/misc/xpath_example_type/test.rb +0 -18
- data/examples/misc/yahoo_finance/test.rb +0 -26
- data/examples/social/blog_comment/test.rb +0 -27
- data/examples/social/del.icio.us/test.rb +0 -22
- data/examples/social/digg/test.rb +0 -37
- data/examples/social/dzone/test.rb +0 -28
- data/examples/social/linkedin/linkedin.rb +0 -23
- data/examples/social/reddit/test.rb +0 -23
- data/examples/tones_extractor_export.rb +0 -23
- data/examples/webshops/amazon-online/test.rb +0 -34
- data/examples/webshops/amazon/002-8212888-3924065.html +0 -5311
- data/examples/webshops/amazon/002-8212888-3924065_files/0130796034.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/020161622X.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0321223675.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0465067107.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0470069155.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0470081201.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0596005253.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0596101325.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0596523696.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0672328844.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0764596861.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0974514055.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0976694069.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0977616606.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0977616614.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/0977616630.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/1590597362.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/1594480060.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/1932394699.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/2841772101.jpg +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/amzn-logo-118w.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/askville-adwidget-bullet.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/askville-logo-sm-adwidget-white-bg.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/book_display_on_website-icon.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/btn-inactive-no-ns.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/btn-inactive-no.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/btn-inactive-yes-ns.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/btn-inactive-yes.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/btn-no-tiny.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/btn-yes-tiny.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/buybox-button-find-gifts-a.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/c7y_badge_rn_1.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/cap-a9-3.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/drop-down-icon-small-arrow.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/endcap-a9-go-2.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/gb-open-new.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/gc-logo-popover-a.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/gift-cert-roto-pop-a.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/go-button-books.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/go-button.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/go-orange-trans.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/go_button_photo.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/logo-off.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/n2CoreLibs-events-18134.js +0 -1407
- data/examples/webshops/amazon/002-8212888-3924065_files/n2CoreLibs-n2v1-57871.css +0 -364
- data/examples/webshops/amazon/002-8212888-3924065_files/n2CoreLibs-simplePopover-41153.js +0 -749
- data/examples/webshops/amazon/002-8212888-3924065_files/n2CoreLibs-utilities-25439.js +0 -1608
- data/examples/webshops/amazon/002-8212888-3924065_files/orange-arrow.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/orange-arrow_002.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/popover-blurb.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/powered-by-a9.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/stars-3-5.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/stars-4-0.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/stars-4-5.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/stars-5-0.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/tagline-adwidget.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/topnav-cart.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/transparent-pixel.gif +0 -0
- data/examples/webshops/amazon/002-8212888-3924065_files/transparent-pixel_002.gif +0 -0
- data/examples/webshops/amazon/test.rb +0 -27
- data/examples/webshops/barnes_and_noble/test.rb +0 -32
- data/examples/webshops/barnes_offline/barnes_and_noble.html +0 -115
- data/examples/webshops/barnes_offline/barnes_and_noble_files/10964080.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/10999676.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/11018492.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/11656534.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/11985045.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/12052378.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/12138286.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/12533212.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/12533268.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/9583392.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/SearchProduct.css +0 -626
- data/examples/webshops/barnes_offline/barnes_and_noble_files/admin3_gtpointup.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/admin_aboutshipping.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/admin_account.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/admin_colon.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/admin_giftreminder.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/admin_help.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/admin_orderstatus.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/admin_wishlist.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/bg.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/btnGoGrn.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/cleardot.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/cleardot_002.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/dot4.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/dotGold20.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/hdCantFind.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/hdSearchResults.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/hgg_tab_home_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/hgg_tab_toy_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/iframeKMP.js +0 -172
- data/examples/webshops/barnes_offline/barnes_and_noble_files/kmp_iframe_cds2.html +0 -25
- data/examples/webshops/barnes_offline/barnes_and_noble_files/kmp_iframe_cds2_data/070226_mc_lnav_search.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/kmp_iframe_cds2_data/XmlUtil.js +0 -199
- data/examples/webshops/barnes_offline/barnes_and_noble_files/kmp_iframe_cds2_data/XslStyleSheet.js +0 -1
- data/examples/webshops/barnes_offline/barnes_and_noble_files/kmp_iframe_cds2_data/kmp_gen.css +0 -81
- data/examples/webshops/barnes_offline/barnes_and_noble_files/kmp_iframe_cds2_data/product-preview-core.js +0 -337
- data/examples/webshops/barnes_offline/barnes_and_noble_files/kmp_iframe_cds2_data/product-preview.css +0 -36
- data/examples/webshops/barnes_offline/barnes_and_noble_files/kmp_iframe_cds2_data/productpreview.js +0 -11
- data/examples/webshops/barnes_offline/barnes_and_noble_files/linePagination.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/logo_bn05.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/navbar.js +0 -34
- data/examples/webshops/barnes_offline/barnes_and_noble_files/navbar_06.css +0 -136
- data/examples/webshops/barnes_offline/barnes_and_noble_files/popup_open.js +0 -116
- data/examples/webshops/barnes_offline/barnes_and_noble_files/qsearch3_vline_dots.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/qsearch4_search.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/qsearch_AdvSearch.jpg +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/subnav_colon.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_Bookclubs_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_bnjr_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_books_hot.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_dvd_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_giftcards_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_home_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_member_cc_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_music_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_pipe.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_textbooksonly_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_usedoop_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/tab_videogames_cold.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/toppromo3_rule.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/toppromo_fastfree05.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/vcart_btn_checkout.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/vcart_icon_cart.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/vcart_topbot_rule.gif +0 -0
- data/examples/webshops/barnes_offline/barnes_and_noble_files/visualcart_prodid.js +0 -401
- data/examples/webshops/barnes_offline/test.rb +0 -30
- data/examples/webshops/buydig/2_files/03AA1BB9089A4A6A92CF23F280D664EB.jpg +0 -0
- data/examples/webshops/buydig/2_files/1008.gif +0 -0
- data/examples/webshops/buydig/2_files/1013.gif +0 -0
- data/examples/webshops/buydig/2_files/1020.gif +0 -0
- data/examples/webshops/buydig/2_files/106CF2FB84B446518397517C3E6D5AD8.jpg +0 -0
- data/examples/webshops/buydig/2_files/13-www.gif +0 -0
- data/examples/webshops/buydig/2_files/1E9BB2E56AB145FC9D6EF952703AF476.jpg +0 -0
- data/examples/webshops/buydig/2_files/1FCDFBE85CDB4D429EC2C8CB24D20457.jpg +0 -0
- data/examples/webshops/buydig/2_files/1pix.gif +0 -0
- data/examples/webshops/buydig/2_files/2014.gif +0 -0
- data/examples/webshops/buydig/2_files/2089.gif +0 -0
- data/examples/webshops/buydig/2_files/24992_medal.gif +0 -0
- data/examples/webshops/buydig/2_files/24BBCBA1397F4DDCBBBBE8456D6D6E5B.jpg +0 -0
- data/examples/webshops/buydig/2_files/281F8A6019B140F38DFD45EB7B69B0FB.jpg +0 -0
- data/examples/webshops/buydig/2_files/2975F866CB2149F7ACBC559C8E24E304.jpg +0 -0
- data/examples/webshops/buydig/2_files/316FC9256DC9460ABC3C5ECAF6C60286.jpg +0 -0
- data/examples/webshops/buydig/2_files/50569327D8B94252B95E449AE470E505.jpg +0 -0
- data/examples/webshops/buydig/2_files/519CDAB404FA4543B76B5F281468ACBF.jpg +0 -0
- data/examples/webshops/buydig/2_files/57D6146419A647BA89C96AF0B5CAB03C.jpg +0 -0
- data/examples/webshops/buydig/2_files/58E3F988E184448B8C0A59874AE123A8.jpg +0 -0
- data/examples/webshops/buydig/2_files/5E5B10197A4E4C9B9ECCD6309DBE4C54.jpg +0 -0
- data/examples/webshops/buydig/2_files/609A249177D04065B37B9161CB0BC92D.jpg +0 -0
- data/examples/webshops/buydig/2_files/676CEE8E53C2445982E991871B4DF613.jpg +0 -0
- data/examples/webshops/buydig/2_files/712BA08FAB524A31A76ABB9E2009FF8E.jpg +0 -0
- data/examples/webshops/buydig/2_files/734BD08D7A5049339393166491D09D21.jpg +0 -0
- data/examples/webshops/buydig/2_files/751E72B7003343248497FE6905F80787.jpg +0 -0
- data/examples/webshops/buydig/2_files/76493D4F02F14EF7B5886510604C7BB4.jpg +0 -0
- data/examples/webshops/buydig/2_files/79521E251278486DB29529C60C9D012A.jpg +0 -0
- data/examples/webshops/buydig/2_files/9C9AF82AC3B54BDC8C705278B50FDFD6.jpg +0 -0
- data/examples/webshops/buydig/2_files/BC3FD8307B9948FDB7EEF156D8629C37.jpg +0 -0
- data/examples/webshops/buydig/2_files/C0DD4574765047D1836F505E69DC8AE5.jpg +0 -0
- data/examples/webshops/buydig/2_files/C143F48515274A44B04F4B3E46306BD2.jpg +0 -0
- data/examples/webshops/buydig/2_files/C6B02E88F729464699DB275D140F4563.jpg +0 -0
- data/examples/webshops/buydig/2_files/CE334D6206DB4FA9AFDF339AEF0AF50F.jpg +0 -0
- data/examples/webshops/buydig/2_files/D66AE0DC865A4021AB300ED3A0C4CD11.jpg +0 -0
- data/examples/webshops/buydig/2_files/DEA2EC2093DC474D96B651068576DAE5.jpg +0 -0
- data/examples/webshops/buydig/2_files/F547677D83844042BF13A4BE6523BB50.jpg +0 -0
- data/examples/webshops/buydig/2_files/Rbbbonlineseal.gif +0 -0
- data/examples/webshops/buydig/2_files/TopSellers_bottom.gif +0 -0
- data/examples/webshops/buydig/2_files/TopSellers_ttl.gif +0 -0
- data/examples/webshops/buydig/2_files/addToFavorites_ttl.gif +0 -0
- data/examples/webshops/buydig/2_files/banner_CorporateSales.gif +0 -0
- data/examples/webshops/buydig/2_files/banner_Shipping.gif +0 -0
- data/examples/webshops/buydig/2_files/bizratehonoree.gif +0 -0
- data/examples/webshops/buydig/2_files/btn_submit.gif +0 -0
- data/examples/webshops/buydig/2_files/checkFlash.js +0 -110
- data/examples/webshops/buydig/2_files/checkFlash2.js +0 -109
- data/examples/webshops/buydig/2_files/cnetcertified.gif +0 -0
- data/examples/webshops/buydig/2_files/credPriceGrabber.gif +0 -0
- data/examples/webshops/buydig/2_files/credShopping.gif +0 -0
- data/examples/webshops/buydig/2_files/credential_paypal.gif +0 -0
- data/examples/webshops/buydig/2_files/credentials.gif +0 -0
- data/examples/webshops/buydig/2_files/dealtime.gif +0 -0
- data/examples/webshops/buydig/2_files/dvxstyle.css +0 -754
- data/examples/webshops/buydig/2_files/footer_021306_1_v1.gif +0 -0
- data/examples/webshops/buydig/2_files/func.js +0 -132
- data/examples/webshops/buydig/2_files/getseal +0 -1
- data/examples/webshops/buydig/2_files/help.gif +0 -0
- data/examples/webshops/buydig/2_files/home.gif +0 -0
- data/examples/webshops/buydig/2_files/java.js +0 -155
- data/examples/webshops/buydig/2_files/leftnv_help.gif +0 -0
- data/examples/webshops/buydig/2_files/logo.gif +0 -0
- data/examples/webshops/buydig/2_files/logo2.gif +0 -0
- data/examples/webshops/buydig/2_files/logo3.gif +0 -0
- data/examples/webshops/buydig/2_files/main.js +0 -227
- data/examples/webshops/buydig/2_files/mastercard_secured.gif +0 -0
- data/examples/webshops/buydig/2_files/newsBox_bkg.jpg +0 -0
- data/examples/webshops/buydig/2_files/newsBox_bottom.jpg +0 -0
- data/examples/webshops/buydig/2_files/newsBox_text.gif +0 -0
- data/examples/webshops/buydig/2_files/newsBox_ttl.jpg +0 -0
- data/examples/webshops/buydig/2_files/noimage75.gif +0 -0
- data/examples/webshops/buydig/2_files/orangeleftfrmbtm.gif +0 -0
- data/examples/webshops/buydig/2_files/pixel153.gif +0 -0
- data/examples/webshops/buydig/2_files/rightnv_bottom.gif +0 -0
- data/examples/webshops/buydig/2_files/search_btn_off.gif +0 -0
- data/examples/webshops/buydig/2_files/search_c1.gif +0 -0
- data/examples/webshops/buydig/2_files/search_c2.gif +0 -0
- data/examples/webshops/buydig/2_files/search_c3.gif +0 -0
- data/examples/webshops/buydig/2_files/search_c4.gif +0 -0
- data/examples/webshops/buydig/2_files/search_down.gif +0 -0
- data/examples/webshops/buydig/2_files/search_left.gif +0 -0
- data/examples/webshops/buydig/2_files/search_right.gif +0 -0
- data/examples/webshops/buydig/2_files/search_top.gif +0 -0
- data/examples/webshops/buydig/2_files/siteLinks_bottom.gif +0 -0
- data/examples/webshops/buydig/2_files/siteLinks_bullet.gif +0 -0
- data/examples/webshops/buydig/2_files/siteLinks_ttl.gif +0 -0
- data/examples/webshops/buydig/2_files/spacer.gif +0 -0
- data/examples/webshops/buydig/2_files/style.js +0 -45
- data/examples/webshops/buydig/2_files/styles.html +0 -33
- data/examples/webshops/buydig/2_files/track_orders.jpg +0 -0
- data/examples/webshops/buydig/2_files/urchin +0 -534
- data/examples/webshops/buydig/2_files/verified_by_visa.gif +0 -0
- data/examples/webshops/buydig/2_files/welcome.gif +0 -0
- data/examples/webshops/buydig/2_files/welcome_ttl.gif +0 -0
- data/examples/webshops/buydig/2_files/yahoologo.gif +0 -0
- data/examples/webshops/buydig/input.html +0 -1194
- data/examples/webshops/buydig/test.rb +0 -31
- data/examples/webshops/ebay/test.rb +0 -32
- data/examples/webshops/finewines_offline/_finewines.html +0 -1739
- data/examples/webshops/finewines_offline/_finewines_cut.html +0 -371
- data/examples/webshops/finewines_offline/_finewines_files/011064.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/012674.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/013268.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/013300.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/013409.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/014340.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/015073.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/015255.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/015479.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/015487.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/017038.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/017129.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/017145.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/017152.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/017285.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/017392.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/017400.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/019778.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/019786.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/020503.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/021253.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/021279.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/021337.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/021352.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/023002.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/023135.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/023143.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/023788.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/024166.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/024182.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/024216.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/027268.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/027516.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/027862.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/028118.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/028936.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/033894.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/033902.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/033910.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/033936.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/033944.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/033951.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/034553.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/034561.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/232439.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/237834.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/268359.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/289082.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/331603.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/369686.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/420257.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/422014.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/460410.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/480533.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/556795.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/597054.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/650606.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/652628.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/653790.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/658450.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/660027.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/660951.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/684514.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/685131.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/686865.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/699330.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/703017.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/703140.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/703850.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/717306.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/900274.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/938225.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/947440.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/951319.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/967893.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/981407.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/981613.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/982421.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/985598.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/986737.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/987503.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/992800.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/VintageslogoEN.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/blanc-up.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/btn_vintages_latest.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/cc_en.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/common.js +0 -860
- data/examples/webshops/finewines_offline/_finewines_files/drink.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/drinkhold.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/ec_en.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/ev_en.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/hold.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/index-wines-features.jpg +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/indexSTYLE.css +0 -398
- data/examples/webshops/finewines_offline/_finewines_files/keyword_search.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/mm_menu.js +0 -1
- data/examples/webshops/finewines_offline/_finewines_files/nr_en.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/ontario_en.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/popup.js +0 -81
- data/examples/webshops/finewines_offline/_finewines_files/releases_nav.js +0 -229
- data/examples/webshops/finewines_offline/_finewines_files/so_en.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/spacer.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/top.gif +0 -0
- data/examples/webshops/finewines_offline/_finewines_files/urchin.js +0 -576
- data/examples/webshops/finewines_offline/_finewines_files/wom_en.gif +0 -0
- data/examples/webshops/finewines_offline/test.rb +0 -30
- data/examples/webshops/us1camera/1_files/1pix.gif +0 -0
- data/examples/webshops/us1camera/1_files/1pix_002.gif +0 -0
- data/examples/webshops/us1camera/1_files/CnetCertified.gif +0 -0
- data/examples/webshops/us1camera/1_files/CyberSource.gif +0 -0
- data/examples/webshops/us1camera/1_files/Images50.gif +0 -0
- data/examples/webshops/us1camera/1_files/Images50_002.gif +0 -0
- data/examples/webshops/us1camera/1_files/Images50_003.gif +0 -0
- data/examples/webshops/us1camera/1_files/Images50_004.gif +0 -0
- data/examples/webshops/us1camera/1_files/Images50_005.gif +0 -0
- data/examples/webshops/us1camera/1_files/Images50_006.gif +0 -0
- data/examples/webshops/us1camera/1_files/PriceGrabber.gif +0 -0
- data/examples/webshops/us1camera/1_files/QSearch.gif +0 -0
- data/examples/webshops/us1camera/1_files/ban-m.jpg +0 -0
- data/examples/webshops/us1camera/1_files/banner1.bin +0 -0
- data/examples/webshops/us1camera/1_files/banner3.bin +0 -0
- data/examples/webshops/us1camera/1_files/block1.jpg +0 -0
- data/examples/webshops/us1camera/1_files/block2.jpg +0 -0
- data/examples/webshops/us1camera/1_files/block3.jpg +0 -0
- data/examples/webshops/us1camera/1_files/block4.jpg +0 -0
- data/examples/webshops/us1camera/1_files/block5.jpg +0 -0
- data/examples/webshops/us1camera/1_files/block6.jpg +0 -0
- data/examples/webshops/us1camera/1_files/bos.js +0 -280
- data/examples/webshops/us1camera/1_files/box1.jpg +0 -0
- data/examples/webshops/us1camera/1_files/box2.jpg +0 -0
- data/examples/webshops/us1camera/1_files/box3.jpg +0 -0
- data/examples/webshops/us1camera/1_files/box4.jpg +0 -0
- data/examples/webshops/us1camera/1_files/dot.jpg +0 -0
- data/examples/webshops/us1camera/1_files/eDevix.gif +0 -0
- data/examples/webshops/us1camera/1_files/electronics1.jpg +0 -0
- data/examples/webshops/us1camera/1_files/getseal +0 -1
- data/examples/webshops/us1camera/1_files/pride.jpg +0 -0
- data/examples/webshops/us1camera/1_files/search.jpg +0 -0
- data/examples/webshops/us1camera/1_files/sidebutton.jpg +0 -0
- data/examples/webshops/us1camera/1_files/sslroilogic.js +0 -49
- data/examples/webshops/us1camera/1_files/style.css +0 -1
- data/examples/webshops/us1camera/1_files/tl.html +0 -2
- data/examples/webshops/us1camera/input.html +0 -548
- data/examples/webshops/us1camera/test.rb +0 -37
- data/pkg/scrubyt-0.4.31.gem +0 -0
- data/resources/allison/LICENSE +0 -184
- data/resources/allison/README +0 -37
- data/resources/allison/allison.css +0 -301
- data/resources/allison/allison.gif +0 -0
- data/resources/allison/allison.js +0 -307
- data/resources/allison/allison.rb +0 -287
- data/resources/allison/cache/BODY +0 -588
- data/resources/allison/cache/CLASS_INDEX +0 -4
- data/resources/allison/cache/CLASS_PAGE +0 -1
- data/resources/allison/cache/FILE_INDEX +0 -4
- data/resources/allison/cache/FILE_PAGE +0 -1
- data/resources/allison/cache/FONTS +0 -1
- data/resources/allison/cache/FR_INDEX_BODY +0 -1
- data/resources/allison/cache/IMGPATH +0 -1
- data/resources/allison/cache/INDEX +0 -1
- data/resources/allison/cache/JAVASCRIPT +0 -307
- data/resources/allison/cache/METHOD_INDEX +0 -4
- data/resources/allison/cache/METHOD_LIST +0 -1
- data/resources/allison/cache/SRC_PAGE +0 -1
- data/resources/allison/cache/STYLE +0 -323
- data/resources/allison/cache/URL +0 -1
- data/scrubyt.gemspec +0 -609
- data/todo/backlog.txt +0 -73
- data/todo/scenario_ideas.txt +0 -19
@@ -1,32 +0,0 @@
|
|
1
|
-
$:.unshift File.join(File.dirname(__FILE__), '../../../../lib')
|
2
|
-
|
3
|
-
require 'scrubyt'
|
4
|
-
|
5
|
-
#Example of:
|
6
|
-
# - Extracting every td from a table
|
7
|
-
# - Using the :generalize option
|
8
|
-
# - Crawling to 2 next pages
|
9
|
-
#
|
10
|
-
#Goal: Extract every td from every table on the page, and also from
|
11
|
-
# 2 other pages linked to this document by a 'next' link
|
12
|
-
#
|
13
|
-
#Solution: This example is very similar to the 'plain_table' one (so I will
|
14
|
-
# not describe what's going on there once more) with one exception -
|
15
|
-
# crawling to the next 2 pages. This is achieved by the 'next_page'
|
16
|
-
# idiom.
|
17
|
-
#
|
18
|
-
|
19
|
-
ambigous_data = Scrubyt::Extractor.define do
|
20
|
-
#Perform the action(s)
|
21
|
-
fetch File.join(File.dirname(__FILE__), "input.html")
|
22
|
-
#Construct the wrapper
|
23
|
-
table do
|
24
|
-
row :generalize => true do
|
25
|
-
value '1', :generalize => true
|
26
|
-
end
|
27
|
-
end
|
28
|
-
next_page "Next"
|
29
|
-
end
|
30
|
-
|
31
|
-
ambigous_data.to_xml.write($stdout, 1)
|
32
|
-
|
@@ -1,40 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<body>
|
3
|
-
<table border=1 padding=10>
|
4
|
-
<tr>
|
5
|
-
<td>12</td>
|
6
|
-
<td>13</td>
|
7
|
-
<td>14</td>
|
8
|
-
<td>15</td>
|
9
|
-
</tr>
|
10
|
-
<tr>
|
11
|
-
<td>16</td>
|
12
|
-
</tr>
|
13
|
-
</table>
|
14
|
-
<br/>
|
15
|
-
<table border=1 padding=10>
|
16
|
-
<tr>
|
17
|
-
<td>17</td>
|
18
|
-
<td>18</td>
|
19
|
-
</tr>
|
20
|
-
<tr>
|
21
|
-
<td>19</td>
|
22
|
-
</tr>
|
23
|
-
</table>
|
24
|
-
<br>
|
25
|
-
<table border=1 padding=10>
|
26
|
-
<tr>
|
27
|
-
<td>20</td>
|
28
|
-
<td>21</td>
|
29
|
-
</tr>
|
30
|
-
<tr>
|
31
|
-
</tr>
|
32
|
-
<tr>
|
33
|
-
<td>22</td>
|
34
|
-
</tr>
|
35
|
-
</table>
|
36
|
-
<br/>
|
37
|
-
<br/>
|
38
|
-
<a href='1.html'>1</a> 2 <a href='3.html'>3</a> <a href='3.html'><img src='images/right_arrow.png' alt='a nice right arrow' style='border :0px'/></a>
|
39
|
-
</body>
|
40
|
-
</html>
|
@@ -1,33 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<body>
|
3
|
-
<table border=1 padding=10>
|
4
|
-
<tr>
|
5
|
-
<td>23</td>
|
6
|
-
<td>24</td>
|
7
|
-
<td>25</td>
|
8
|
-
</tr>
|
9
|
-
</table>
|
10
|
-
<br/>
|
11
|
-
<table border=1 padding=10>
|
12
|
-
<tr>
|
13
|
-
<td>26</td>
|
14
|
-
</tr>
|
15
|
-
<tr>
|
16
|
-
<td>27</td>
|
17
|
-
<td>28</td>
|
18
|
-
</tr>
|
19
|
-
</table>
|
20
|
-
<br>
|
21
|
-
<table border=1 padding=10>
|
22
|
-
<tr>
|
23
|
-
<td>29</td>
|
24
|
-
<td>30</td>
|
25
|
-
</tr>
|
26
|
-
<tr>
|
27
|
-
</tr>
|
28
|
-
<tr>
|
29
|
-
<td>31</td>
|
30
|
-
</tr>
|
31
|
-
</table>
|
32
|
-
</body>
|
33
|
-
</html>
|
Binary file
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<body>
|
3
|
-
<table border=1 padding=10>
|
4
|
-
<tr>
|
5
|
-
<td>1</td>
|
6
|
-
<td>2</td>
|
7
|
-
</tr>
|
8
|
-
<tr>
|
9
|
-
<td>3</td>
|
10
|
-
<td>4</td>
|
11
|
-
<td>5</td>
|
12
|
-
</tr>
|
13
|
-
</table>
|
14
|
-
<br/>
|
15
|
-
<table border=1 padding=10>
|
16
|
-
<tr>
|
17
|
-
<td>6</td>
|
18
|
-
</tr>
|
19
|
-
<tr>
|
20
|
-
<td>7</td>
|
21
|
-
</tr>
|
22
|
-
<tr>
|
23
|
-
<td>8</td>
|
24
|
-
</tr>
|
25
|
-
</table>
|
26
|
-
<br>
|
27
|
-
<table border=1 padding=10>
|
28
|
-
<tr>
|
29
|
-
<td>9</td>
|
30
|
-
<td>10</td>
|
31
|
-
</tr>
|
32
|
-
<tr>
|
33
|
-
</tr>
|
34
|
-
<tr>
|
35
|
-
<td>11</td>
|
36
|
-
</tr>
|
37
|
-
</table>
|
38
|
-
<br/>
|
39
|
-
<br/>
|
40
|
-
1 <a href='2.html'>2</a> <a href='3.html'>3</a> <a href='2.html'><img src='images/right_arrow.png' alt='a nice right arrow' style='border :0px'/></a>
|
41
|
-
</body>
|
42
|
-
</html>
|
@@ -1,32 +0,0 @@
|
|
1
|
-
$:.unshift File.join(File.dirname(__FILE__), '../../../../lib')
|
2
|
-
|
3
|
-
require 'scrubyt'
|
4
|
-
|
5
|
-
#Example of:
|
6
|
-
# - Extracting every td from a table
|
7
|
-
# - Using the :generalize option
|
8
|
-
# - Crawling to 2 next pages
|
9
|
-
#
|
10
|
-
#Goal: Extract every td from every table on the page, and also from
|
11
|
-
# 2 other pages linked to this document by a 'next' link
|
12
|
-
#
|
13
|
-
#Solution: This example is very similar to the 'plain_table' one (so I will
|
14
|
-
# not describe what's going on there once more) with one exception -
|
15
|
-
# crawling to the next 2 pages. This is achieved by the 'next_page'
|
16
|
-
# idiom.
|
17
|
-
#
|
18
|
-
|
19
|
-
ambigous_data = Scrubyt::Extractor.define do
|
20
|
-
#Perform the action(s)
|
21
|
-
fetch File.join(File.dirname(__FILE__), "input.html")
|
22
|
-
#Construct the wrapper
|
23
|
-
table do
|
24
|
-
row :generalize => true do
|
25
|
-
value '1', :generalize => true
|
26
|
-
end
|
27
|
-
end
|
28
|
-
next_page "images/right_arrow.png"
|
29
|
-
end
|
30
|
-
|
31
|
-
ambigous_data.to_xml.write($stdout, 1)
|
32
|
-
|
@@ -1,46 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<body>
|
3
|
-
<div>
|
4
|
-
<table>
|
5
|
-
<tr>
|
6
|
-
<td>
|
7
|
-
item 1/1
|
8
|
-
</td>
|
9
|
-
<td>
|
10
|
-
good item 1/2
|
11
|
-
</td>
|
12
|
-
<td>
|
13
|
-
crap
|
14
|
-
</td>
|
15
|
-
<td>
|
16
|
-
item 2/1
|
17
|
-
</td>
|
18
|
-
<td>
|
19
|
-
good item 2/2
|
20
|
-
</td>
|
21
|
-
<td>
|
22
|
-
crap
|
23
|
-
</td>
|
24
|
-
<td>
|
25
|
-
item 3/1
|
26
|
-
</td>
|
27
|
-
<td>
|
28
|
-
good item 3/2
|
29
|
-
</td>
|
30
|
-
<td>
|
31
|
-
crap
|
32
|
-
</td>
|
33
|
-
<td>
|
34
|
-
item 4/1
|
35
|
-
</td>
|
36
|
-
<td>
|
37
|
-
good item 4/2
|
38
|
-
</td>
|
39
|
-
<td>
|
40
|
-
crap
|
41
|
-
</td>
|
42
|
-
</tr>
|
43
|
-
</table>
|
44
|
-
</div>
|
45
|
-
</body>
|
46
|
-
</html>
|
@@ -1,55 +0,0 @@
|
|
1
|
-
$:.unshift File.join(File.dirname(__FILE__), '../../../../lib')
|
2
|
-
|
3
|
-
require 'scrubyt'
|
4
|
-
|
5
|
-
#Example of:
|
6
|
-
# - Extracting every td from a table
|
7
|
-
# - Using the :generalize option
|
8
|
-
#
|
9
|
-
#Goal: Extract every td from all tables on the page
|
10
|
-
#
|
11
|
-
#Solution: Since by default only the root child(ren) of the extractor
|
12
|
-
# is/are generalized, and we need every <td> in every <tr>, we
|
13
|
-
# need to generalize the patterns that extracted them, too.
|
14
|
-
# To achieve this, use the the :generalize option as shown below!
|
15
|
-
#
|
16
|
-
|
17
|
-
table_data = Scrubyt::Extractor.define do
|
18
|
-
#Perform the action(s)
|
19
|
-
fetch File.join(File.dirname(__FILE__), "input.html")
|
20
|
-
#Construct the wrapper
|
21
|
-
row do
|
22
|
-
(item 'item 1/1', :generalize => true).select_indices(:every_third)
|
23
|
-
(link 'good item 1/2', :generalize => true).select_indices(:every_fourth)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
table_data.to_xml.write($stdout, 1)
|
31
|
-
#puts table_data.table[1].row[0].value[0].to_text
|
32
|
-
Scrubyt::ResultDumper.print_statistics(table_data)
|
33
|
-
|
34
|
-
#table_data.export(__FILE__)
|
35
|
-
|
36
|
-
=begin
|
37
|
-
<root>
|
38
|
-
<row>
|
39
|
-
<item>item 1/1</item>
|
40
|
-
<item>item 2/1</item>
|
41
|
-
<item>item 3/1</item>
|
42
|
-
<item>item 4/1</item>
|
43
|
-
</row>
|
44
|
-
</root>
|
45
|
-
|
46
|
-
<root>
|
47
|
-
<row>
|
48
|
-
<link>item 1/1</link>
|
49
|
-
<link>good item 2/2</link>
|
50
|
-
<link>crap</link>
|
51
|
-
</row>
|
52
|
-
</root>
|
53
|
-
=end
|
54
|
-
|
55
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
$:.unshift File.join(File.dirname(__FILE__), '../../../lib')
|
2
|
-
|
3
|
-
require 'scrubyt'
|
4
|
-
|
5
|
-
extractor = Scrubyt::Extractor.define do
|
6
|
-
fetch File.join(File.dirname(__FILE__), "input.html")
|
7
|
-
|
8
|
-
root '//table' do
|
9
|
-
parent '/tr[2]', :generalize=>false do
|
10
|
-
name '/td'
|
11
|
-
child '../tr[1]', :example_type=>:xpath, :generalize=>false, :type=>:tree do
|
12
|
-
name './td'
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
extractor.to_xml.write($stdout, 1)
|
@@ -1,26 +0,0 @@
|
|
1
|
-
$:.unshift File.join(File.dirname(__FILE__), '../../../lib')
|
2
|
-
|
3
|
-
require 'scrubyt'
|
4
|
-
|
5
|
-
#Example of:
|
6
|
-
# - scraping stock values from finance.yahoo.com
|
7
|
-
#
|
8
|
-
#Goal: from finance.yahoo.com. Scrape the actual values found there
|
9
|
-
# for the stock information available.
|
10
|
-
#Solution: Nothing special here. The examples are defined, and
|
11
|
-
# the ensure_presence_of_pattern constraint is used to filter out
|
12
|
-
# stockinfos that do not have a value specified.
|
13
|
-
|
14
|
-
stock_data = Scrubyt::Extractor.define do
|
15
|
-
#Perform the action(s)
|
16
|
-
fetch 'http://finance.yahoo.com/'
|
17
|
-
#Construct the wrapper
|
18
|
-
stockinfo do
|
19
|
-
symbol 'Dow'
|
20
|
-
value '15.54'
|
21
|
-
end.ensure_presence_of_pattern('value')
|
22
|
-
end
|
23
|
-
|
24
|
-
|
25
|
-
stock_data.to_xml.write($stdout, 1)
|
26
|
-
Scrubyt::ResultDumper.print_statistics(stock_data)
|
@@ -1,27 +0,0 @@
|
|
1
|
-
$:.unshift File.join(File.dirname(__FILE__), '../../..//lib')
|
2
|
-
|
3
|
-
require 'scrubyt'
|
4
|
-
|
5
|
-
#Example of:
|
6
|
-
# - filling and submitting a textfield
|
7
|
-
# - filling a text area
|
8
|
-
# - submitting the form
|
9
|
-
#
|
10
|
-
#Goal: Automatically sending a comment to a wordpress blog
|
11
|
-
#Solution: After fetching the page, fill the 'author' and 'email' textfields,
|
12
|
-
# then enter your comment to the 'comment' textarea and submit the form.
|
13
|
-
# This example does not use a scraper - it's an example of an extractor
|
14
|
-
# which uses just navigation to accomplish the goal.
|
15
|
-
# Please don't run this too much (or change the name,email and comment
|
16
|
-
# to something menaningful) - I would not like to have a horde of comments
|
17
|
-
# from Bruce Lee :-)
|
18
|
-
#
|
19
|
-
#Credit: Zaheed Haque
|
20
|
-
|
21
|
-
post_comment = Scrubyt::Extractor.define do
|
22
|
-
fetch 'http://scrubyt.org/your-first-extractor/'
|
23
|
-
fill_textfield 'author', 'Bruce Lee'
|
24
|
-
fill_textfield 'email', 'bruce@kung-foo.com'
|
25
|
-
fill_textarea 'comment', 'Yet another test comment from Bruce!'
|
26
|
-
submit
|
27
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
$:.unshift File.join(File.dirname(__FILE__), '../../..//lib')
|
2
|
-
|
3
|
-
require 'scrubyt'
|
4
|
-
|
5
|
-
#Will comment later
|
6
|
-
|
7
|
-
del_icio_us_data = Scrubyt::Extractor.define do
|
8
|
-
fetch "http://del.icio.us/search/?p=ruby"
|
9
|
-
|
10
|
-
item do
|
11
|
-
title 'Why’s (Poignant) Guide to Ruby'
|
12
|
-
title_url 'Why’s (Poignant) Guide to Ruby' do
|
13
|
-
url 'href', :type => :attribute
|
14
|
-
end
|
15
|
-
bookmarks 'saved by 6687 people', :generalize => true do
|
16
|
-
votes /\d+/
|
17
|
-
end.select_indices(:all_but_last)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
del_icio_us_data.to_xml.write($stdout, 1)
|
22
|
-
del_icio_us_data.export(__FILE__)
|
@@ -1,37 +0,0 @@
|
|
1
|
-
$:.unshift File.join(File.dirname(__FILE__), '../../..//lib')
|
2
|
-
|
3
|
-
require 'scrubyt'
|
4
|
-
|
5
|
-
#Example of:
|
6
|
-
# - Scraping a digg page; otherwise nothing special
|
7
|
-
#
|
8
|
-
#Goal: Extract every main item contained on the front page - an item
|
9
|
-
# should containt the title and the number of diggs.
|
10
|
-
#
|
11
|
-
#Solution: Well, nothing special - this could even be a 'Hello, world!'
|
12
|
-
# type of example. However, it is far from that - since digg
|
13
|
-
# is changing so fast that it is practically impossible to
|
14
|
-
# capture an example before it gets at least one more digg on
|
15
|
-
# the frontpage. Solution: go to the 10th or so page, and select
|
16
|
-
# an example there (with the lowest possible digg, since that lowers
|
17
|
-
# the risk of being digged up even more) and export the stuff immediately
|
18
|
-
# then use the production extractor.
|
19
|
-
# !!! NOTE !!! to run this example, you will need to change the example!
|
20
|
-
# it is totally impossible that there is something on the frontpage with 1 diggs!
|
21
|
-
|
22
|
-
digg_data = Scrubyt::Extractor.define do
|
23
|
-
fetch 'http://digg.com/'
|
24
|
-
fill_textfield 's', 'ruby'
|
25
|
-
submit
|
26
|
-
|
27
|
-
item do
|
28
|
-
title "Free Dog Training Tips"
|
29
|
-
diggs "1"
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
digg_data.to_xml.write($stdout, 1)
|
34
|
-
Scrubyt::ResultDumper.print_statistics(digg_data)
|
35
|
-
digg_data.export(__FILE__)
|
36
|
-
|
37
|
-
|