agent_cooper 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.gitignore +1 -1
  2. data/README.md +13 -4
  3. data/Rakefile +0 -3
  4. data/agent_cooper.gemspec +12 -13
  5. data/features/finder.feature +4 -6
  6. data/features/merchandiser.feature +1 -2
  7. data/features/shopper.feature +2 -2
  8. data/features/support/env.rb +5 -5
  9. data/features/support/vcr.rb +10 -0
  10. data/lib/agent_cooper.rb +17 -4
  11. data/lib/agent_cooper/config.rb +3 -9
  12. data/lib/agent_cooper/nokogiri_decorator.rb +47 -0
  13. data/lib/agent_cooper/request.rb +36 -13
  14. data/lib/agent_cooper/requests/finder.rb +25 -0
  15. data/lib/agent_cooper/requests/merchandiser.rb +25 -0
  16. data/lib/agent_cooper/requests/shopper.rb +23 -0
  17. data/lib/agent_cooper/response.rb +3 -4
  18. data/lib/agent_cooper/synchrony.rb +34 -0
  19. data/lib/agent_cooper/version.rb +1 -1
  20. data/spec/agent_cooper/request_spec.rb +91 -6
  21. data/spec/agent_cooper/requests/finder_spec.rb +13 -0
  22. data/spec/agent_cooper/requests/merchandiser_spec.rb +13 -0
  23. data/spec/agent_cooper/requests/shopper_spec.rb +13 -0
  24. data/spec/agent_cooper/response_spec.rb +51 -1
  25. data/spec/agent_cooper_spec.rb +12 -0
  26. data/spec/fixtures/cassettes/finder/find_items_advanced/d49218a9522a4a055e31fc6b88c3a2b5.yml +528 -0
  27. data/spec/fixtures/cassettes/finder/find_items_by_category/85e07de9993e68d09e895f1b01234c5a.yml +463 -0
  28. data/spec/fixtures/cassettes/finder/find_items_by_keywords/91d7d9b4b62b82877604465a20f9ffa9.yml +668 -0
  29. data/spec/fixtures/cassettes/finder/find_items_by_product/59ee1391b6dfc2a93e30c8911942fc71.yml +744 -0
  30. data/spec/fixtures/cassettes/finder/find_items_in_ebay_stores/c7d658804b6353fda03809c21b183af2.yml +472 -0
  31. data/spec/fixtures/cassettes/finder/get_histograms/80bd04d96cd529af4148866a2d28f079.yml +46 -0
  32. data/spec/fixtures/cassettes/finder/get_search_keywords_recommendation/ec96bf3af091373de08550ff46f86c87.yml +41 -0
  33. data/spec/fixtures/cassettes/merchandiser/get_most_watched_items/3c0cb6fb7bb94b384cae15be175e9640.yml +51 -0
  34. data/spec/fixtures/cassettes/merchandiser/get_related_category_items/c949e90fb2bd975020df657a4348328d.yml +41 -0
  35. data/spec/fixtures/cassettes/merchandiser/get_similar_items/56c2c41a60135db83d359053778a065f.yml +41 -0
  36. data/spec/fixtures/cassettes/merchandiser/get_top_selling_products/a82dcb1f094754e54f2a5de191818c3f.yml +53 -0
  37. data/spec/fixtures/cassettes/shopper/find_half_products/77ad8a2ade8e4efadef07346677e43a9.yml +55 -0
  38. data/spec/fixtures/cassettes/shopper/find_popular_items/532fcb32fee187bdc6cc5fb7e4336992.yml +258 -0
  39. data/spec/fixtures/cassettes/shopper/find_popular_searches/6db9b375ea610e870e7a4ca4e20974ec.yml +45 -0
  40. data/spec/fixtures/cassettes/shopper/find_products/3fd6d6000037cd409ab1ef18a6075257.yml +52 -0
  41. data/spec/fixtures/cassettes/shopper/find_reviews_and_guides/8586a984e122cb84136d3cc0bb8bec77.yml +174 -0
  42. data/spec/fixtures/cassettes/shopper/get_item_status/f34cf10c602f9fec7a388297888b4299.yml +45 -0
  43. data/spec/fixtures/cassettes/shopper/get_multiple_items/c1183c23add6cad9afbb73f986c2692e.yml +46 -0
  44. data/spec/fixtures/cassettes/shopper/get_shipping_costs/e7de18031f266637414155639797c097.yml +45 -0
  45. data/spec/fixtures/cassettes/shopper/get_single_item/d4a895de6b214907c47a0b32ab630b9a.yml +44 -0
  46. data/spec/fixtures/cassettes/shopper/get_user_profile/dccabbf426bfeba4d898ca546e17dd4b.yml +47 -0
  47. data/spec/{support → fixtures}/ebay.yml.sample +0 -0
  48. data/spec/spec_helper.rb +4 -0
  49. metadata +141 -177
  50. data/lib/agent_cooper/finder.rb +0 -21
  51. data/lib/agent_cooper/merchandiser.rb +0 -24
  52. data/lib/agent_cooper/shopper.rb +0 -22
  53. data/spec/agent_cooper/config_spec.rb +0 -21
  54. data/spec/agent_cooper/finder_spec.rb +0 -19
  55. data/spec/agent_cooper/merchandiser_spec.rb +0 -18
  56. data/spec/agent_cooper/shopper_spec.rb +0 -18
@@ -0,0 +1,45 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://open.api.ebay.com:80/shopping?APPID=YOUR-APP-ID&CALLNAME=FindPopularSearches&QueryKeywords=dell&RESPONSEENCODING=XML&SITEID=0&VERSION=717
6
+ body: !!null
7
+ headers: !!null
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ content-type:
14
+ - text/xml;charset=utf-8
15
+ cache-control:
16
+ - no-cache
17
+ expires:
18
+ - Sat, 25 Dec 1999 00:00:00 GMT
19
+ last-modified:
20
+ - Sat, 23 Jul 2011 18:25:12 GMT
21
+ pragma:
22
+ - no-cache
23
+ server:
24
+ - Apache-Coyote/1.1
25
+ x-ebay-api-build-tag:
26
+ - E731_CORE_BUNDLED_13527319_R1
27
+ x-ebay-api-pool-name:
28
+ - ___cDRidW9rdDdlaHFg
29
+ x-ebay-api-server-name:
30
+ - ___dW0ucm83Nyg2MWE8MjQ1Kjc3LTMoNjQ2KDMwPz43OzU=
31
+ x-ebay-esb-guid:
32
+ - urn:uuid:5CD0BB9874BFF7D9EB27285028377285391969966676
33
+ date:
34
+ - Sat, 23 Jul 2011 18:25:12 GMT
35
+ transfer-encoding:
36
+ - chunked
37
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n <FindPopularSearchesResponse
38
+ xmlns=\"urn:ebay:apis:eBLBaseComponents\">\n <Timestamp>2011-07-23T18:25:12.577Z</Timestamp>\n
39
+ \ <Ack>Success</Ack>\n <Build>E731_CORE_BUNDLED_13527319_R1</Build>\n <Version>731</Version>\n
40
+ \ <PopularSearchResult>\n <QueryKeywords>dell</QueryKeywords>\n <AlternativeSearches>dell
41
+ laptop;dell desktop;laptop;dell xps;dell inspiron</AlternativeSearches>\n <RelatedSearches>hp;dell
42
+ axim x30;dell latitude;acer;dell phone;dell optiplex;alienware laptop;dell precision;dell
43
+ tablet;dell pc;dell lot;alienware;dell tower;compaq;dell printer</RelatedSearches>\n
44
+ \ </PopularSearchResult>\n </FindPopularSearchesResponse>\n "
45
+ http_version: '1.1'
@@ -0,0 +1,52 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://open.api.ebay.com:80/shopping?APPID=YOUR-APP-ID&CALLNAME=FindProducts&QueryKeywords=harry%20potter&RESPONSEENCODING=XML&SITEID=0&VERSION=717
6
+ body: !!null
7
+ headers: !!null
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ content-type:
14
+ - text/xml;charset=utf-8
15
+ cache-control:
16
+ - no-cache
17
+ expires:
18
+ - Sat, 25 Dec 1999 00:00:00 GMT
19
+ last-modified:
20
+ - Sat, 23 Jul 2011 18:25:12 GMT
21
+ pragma:
22
+ - no-cache
23
+ server:
24
+ - Apache-Coyote/1.1
25
+ x-ebay-api-build-tag:
26
+ - E731_CORE_BUNDLED_13527319_R1
27
+ x-ebay-api-pool-name:
28
+ - ___cDRidW9rdDdlaHFg
29
+ x-ebay-api-server-name:
30
+ - ___dW0ucm43Nyg/MzZxcXNiKjc3LTMoMTorPjM5PTY/Mw==
31
+ x-ebay-esb-guid:
32
+ - urn:uuid:0818EFD69DD414CBF6269545847914785511118903125
33
+ date:
34
+ - Sat, 23 Jul 2011 18:25:11 GMT
35
+ transfer-encoding:
36
+ - chunked
37
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n <FindProductsResponse
38
+ xmlns=\"urn:ebay:apis:eBLBaseComponents\">\n <Timestamp>2011-07-23T18:25:12.285Z</Timestamp>\n
39
+ \ <Ack>Success</Ack>\n <Build>E731_CORE_BUNDLED_13527319_R1</Build>\n <Version>731</Version>\n
40
+ \ <ApproximatePages>1170</ApproximatePages>\n <MoreResults>true</MoreResults>\n
41
+ \ <PageNumber>1</PageNumber>\n <Product>\n <DomainName>DVDs</DomainName>\n
42
+ \ <DetailsURL>http://syicatalogs.ebay.com/ws/eBayISAPI.dll?PageSyiProductDetails&amp;IncludeAttributes=1&amp;ShowAttributesTable=1&amp;ProductMementoString=115979:2:1049:1597262630:336208740:1b8ed71676cebc1fb9211d3c1eee0b4a:1:1:1:1415162318</DetailsURL>\n
43
+ \ <DisplayStockPhotos>true</DisplayStockPhotos>\n <ProductID type=\"Reference\">99846530</ProductID>\n
44
+ \ <ProductID type=\"UPC\">883929139446</ProductID>\n <ItemSpecifics>\n
45
+ \ <NameValueList>\n <Name>Format</Name>\n <Value>DVD</Value>\n
46
+ \ </NameValueList>\n <NameValueList>\n <Name>Rating</Name>\n <Value>PG-13</Value>\n
47
+ \ </NameValueList>\n <NameValueList>\n <Name>Leading Role</Name>\n
48
+ \ </NameValueList>\n </ItemSpecifics>\n <ReviewCount>84</ReviewCount>\n
49
+ \ <StockPhotoURL>http://i.ebayimg.com/00/$(KGrHqF,!l0E2DwP)(v!BNo16imfYQ~~_6.JPG?set_id=89040003C1</StockPhotoURL>\n
50
+ \ <Title>Harry Potter and the Deathly Hallows: Part I (DVD, 2011)</Title>\n
51
+ \ </Product>\n <TotalProducts>1170</TotalProducts>\n </FindProductsResponse>\n "
52
+ http_version: '1.1'
@@ -0,0 +1,174 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://open.api.ebay.com:80/shopping?APPID=YOUR-APP-ID&CALLNAME=FindReviewsAndGuides&CategoryID=177&RESPONSEENCODING=XML&SITEID=0&VERSION=717
6
+ body: !!null
7
+ headers: !!null
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ content-type:
14
+ - text/xml;charset=utf-8
15
+ cache-control:
16
+ - no-cache
17
+ expires:
18
+ - Sat, 25 Dec 1999 00:00:00 GMT
19
+ last-modified:
20
+ - Sat, 23 Jul 2011 18:25:12 GMT
21
+ pragma:
22
+ - no-cache
23
+ server:
24
+ - Apache-Coyote/1.1
25
+ x-ebay-api-build-tag:
26
+ - E731_CORE_BUNDLED_13527319_R1
27
+ x-ebay-api-pool-name:
28
+ - ___cDRidW9rdDdlaHFg
29
+ x-ebay-api-server-name:
30
+ - ___dW0ucm83Nyg2MTY0MzIzKjc3LTMoNjQ2KDU0Pz43OzU=
31
+ x-ebay-esb-guid:
32
+ - urn:uuid:5CD0BB9874BFF7D9EB2728502858908350760218944
33
+ date:
34
+ - Sat, 23 Jul 2011 18:25:12 GMT
35
+ transfer-encoding:
36
+ - chunked
37
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n <FindReviewsAndGuidesResponse
38
+ xmlns=\"urn:ebay:apis:eBLBaseComponents\">\n <Timestamp>2011-07-23T18:25:12.926Z</Timestamp>\n
39
+ \ <Ack>Success</Ack>\n <Build>E731_CORE_BUNDLED_13527319_R1</Build>\n <Version>731</Version>\n
40
+ \ <BuyingGuideCount>596</BuyingGuideCount>\n <ReviewsAndGuidesURL>http://search.reviews.ebay.com/_PC+Laptops+%26+Netbooks_W0QQuqtZgQQucatZ177</ReviewsAndGuidesURL>\n
41
+ \ <PageNumber>1</PageNumber>\n <TotalPages>120</TotalPages>\n <BuyingGuideDetails>\n
42
+ \ <BuyingGuide>\n <Name>Laptops</Name>\n <URL>http://reviews.ebay.com/Laptops-Buying-Guide_W0QQugidZ10000000000025018</URL>\n
43
+ \ <CategoryID>177</CategoryID>\n <Title>Laptops Buying Guide</Title>\n
44
+ \ <Text>&lt;html&gt;&lt;a name=&quot;top&quot;&gt;&lt;/a&gt;&lt;head&gt;\n
45
+ \ &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;
46
+ charset=ISO-8859-1&quot;&gt;\n &lt;title&gt;eBay Guides - Laptops Buying Guide&lt;/title&gt;&lt;meta
47
+ name=&quot;keywords&quot; content=&quot;laptops, notebooks, dell laptops, ultraportable,
48
+ ibook, powerbook&amp;nbsp;&quot;&gt;&lt;meta name=&quot;description&quot; content=&quot;Learn
49
+ about&amp;nbsp;laptops&amp;nbsp;and notebooks for work or home. Use eBay&apos;s
50
+ Laptops Buying Guide to inform your next purchase! &quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;var
51
+ pageName = &quot;Reviews_guide_view_eBay&quot;;&lt;/script&gt;&lt;!--GuideSummary:
52
+ \n Laptop computers, also called notebooks, give you the freedom
53
+ to take your computer into different rooms and on the road. Students, frequent
54
+ travelers, and people looking for a small, portable second computer love these
55
+ alternatives --&gt;&lt;/head&gt;&lt;body&gt;&lt;script language=&quot;javascript&quot;
56
+ type=&quot;text/javascript&quot;&gt;&lt;!--\n\t\t\t\t\tvar isXconPage = &quot;This
57
+ is an xCon page\\nasset id: eBayGuides.BuyingGuides.CN_LaptopComputer&quot;;\n\t\t\t\t//--&gt;&lt;/script&gt;&lt;div
58
+ id=&quot;HelpHeader&quot;&gt;&lt;!--H=header1_0--&gt;&lt;link rel=&quot;stylesheet&quot;
59
+ type=&quot;text/css&quot; href=&quot;http://include.ebaystatic.com/v4css/en_US_MAIN/v/GlobalNav_EbayStatic_v_en_US_MAIN.css&quot;&gt;&lt;!--cacheStatus:
60
+ true--&gt;&lt;script src=&quot;http://include.ebaystatic.com/v4js/en_US_MAIN/v/GlobalNav_EbayStatic_v_1_en_US_MAIN.js&quot;&gt;&lt;/script&gt;&lt;script
61
+ type=&quot;text/javascript&quot;&gt;function jsEvt0() {\n}\njsEvt0.prototype.handle
62
+ = function(event) { \noRegistry.get(&apos;playground&apos;).show();\n};\n\n&lt;/script&gt;&lt;script
63
+ type=&quot;text/javascript&quot;&gt;eventDispatcher.attachHandlerToElement(&apos;body&apos;,&apos;onload&apos;,new
64
+ jsEvt0());\n\n&lt;/script&gt;&lt;span class=&quot;ebay&quot;&gt;&lt;div id=&quot;gnheader&quot;
65
+ clas...</Text>\n <CreationTime>2005-10-13T10:14:38.000Z</CreationTime>\n
66
+ \ </BuyingGuide>\n <BuyingGuide>\n <Name>Laptops</Name>\n <URL>http://reviews.ebay.com/Laptops-Buying-Guide_W0QQugidZ10000000000000932</URL>\n
67
+ \ <CategoryID>177</CategoryID>\n <Title>Laptops Buying Guide</Title>\n
68
+ \ <Text>&lt;html xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;&lt;a
69
+ name=&quot;top&quot;&gt;&lt;/a&gt;&lt;head&gt;\n &lt;meta http-equiv=&quot;Content-Type&quot;
70
+ content=&quot;text/html; charset=ISO-8859-1&quot;&gt;\n &lt;title&gt;Laptops
71
+ Buying Guide &lt;/title&gt;&lt;meta name=&quot;keywords&quot; content=&quot;laptops,
72
+ notebooks, dell laptops, ultraportable, ibook, powerbook&amp;nbsp;&quot;&gt;&lt;meta
73
+ name=&quot;description&quot; content=&quot;Learn about&amp;nbsp;laptops&amp;nbsp;and
74
+ notebooks for work or home. Use eBay&apos;s Laptops Buying Guide to inform your
75
+ next purchase! &quot;&gt;&lt;!--GuideSummary: Laptop computers, also called
76
+ notebooks, give you the freedom to take your computer into different rooms and
77
+ on the road. Students, frequent travelers, and people looking for a small, portable
78
+ second computer love these alternatives to desktop PCs. P--&gt;&lt;/head&gt;&lt;body&gt;&lt;noscript&gt;&lt;link
79
+ rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://include.ebaystatic.com/aw/pics/css/ebay.css&quot;&gt;&lt;/noscript&gt;&lt;script
80
+ type=&quot;text/javascript&quot; language=&quot;JavaScript1.1&quot;&gt;includeHost
81
+ = &apos;http://include.ebaystatic.com/&apos;;&lt;/script&gt;&lt;script src=&quot;http://include.ebaystatic.com/js/v/us/ebaybase.js&quot;&gt;&lt;/script&gt;&lt;script
82
+ src=&quot;http://include.ebaystatic.com/js/v/us/ebaysup.js&quot;&gt;&lt;/script&gt;&lt;script
83
+ type=&quot;text/javascript&quot; language=&quot;JavaScript1.1&quot;&gt;\n\t\t\tebay.oDocument._getControl(&quot;headerCommon&quot;)._exec(&quot;writeStyleSheet&quot;);\n\t\t&lt;/script&gt;&lt;script
84
+ type=&quot;text/javascript&quot; language=&quot;JavaScript1.1&quot;&gt;\n\t\t\tebay.oDocument._getControlEx(&quot;cobrandCollection&quot;)._exec(&quot;writeHeader&quot;);\n\t\t&lt;/script&gt;&lt;span
85
+ class=&quot;ebay&quot;&gt;&lt;form class=&quot;nomargin&quot; method=&quot;get&quot;
86
+ name=&quot;headerSearch&quot; onsubmit=&quot;ebay.oDocument._getControl(&apos;searchHeader&apos;)._...</Text>\n
87
+ \ <CreationTime>2005-09-22T20:41:32.000Z</CreationTime>\n </BuyingGuide>\n
88
+ \ <BuyingGuide>\n <Name>How to buy a noteboo...</Name>\n <URL>http://reviews.ebay.com/How-to-buy-a-notebook-computer_W0QQugidZ10000000000068196</URL>\n
89
+ \ <CategoryID>177</CategoryID>\n <Title>How to buy a notebook computer.</Title>\n
90
+ \ <Text>(1)&amp;nbsp;&amp;nbsp; &amp;nbsp;Before you buy&amp;nbsp;a computer
91
+ you need to decide what your needs are. The first decision is whether you want
92
+ to buy a &lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Desktop Computer&lt;/SPAN&gt;
93
+ or a &lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Notebook Computer&lt;/SPAN&gt;.
94
+ If you&apos;ve already decided on getting a notebook computer, then you need
95
+ to decide on the type of notebook computer. There are 3 main types of notebooks:
96
+ &lt;BR&gt;A) &lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;All-Purpose Notebooks&lt;/SPAN&gt;
97
+ (these are the middle of the road type, not too big or too small, not really
98
+ heavy or really light &lt;BR&gt;B) &lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Desktop
99
+ Replacement Notebooks&lt;/SPAN&gt; (these are bigger and heavier than the All-Purpose
100
+ type notebooks, Desktop replacement notebooks have the biggest screens and keyboards
101
+ but are somewhat heavy, not something you&apos;d want to be carrying around
102
+ every day). &lt;BR&gt;C) &lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Ultraportable
103
+ Notebooks&lt;/SPAN&gt;: These are the lightest and most portable type of notebooks.
104
+ They are designed for people that carry the notebook with them almost every
105
+ day. The disadvantages are the screen can be hard to read and the keyboard can
106
+ be cramped. Also, the price for these can be a bit higher for the similar features.
107
+ This is because the portability of these light notebooks is highly prized by
108
+ many. &lt;BR&gt;&lt;BR&gt;(2) I used to always buy a desktop computer because
109
+ for a given amount of money you could buy a faster computer or one that stored
110
+ more information by buying a desktop instead of a notebook. Portability was
111
+ not a factor for me until I moved overseas. It was impractical to bring a desktop
112
+ computer from the US, so I decided to buy a notebook computer. Since I would
113
+ not be moving the notebook often, I chose to get a desktop replacement notebook.
114
+ The ability to pick up the whole computer and put i...</Text>\n <CreationTime>2005-11-20T09:31:23.000Z</CreationTime>\n
115
+ \ <UserID>danielnyc</UserID>\n </BuyingGuide>\n <BuyingGuide>\n <Name>Simple
116
+ Laptop Buying...</Name>\n <URL>http://reviews.ebay.com/Simple-Laptop-Buying-Numbers-Aren-apos-t-Everything_W0QQugidZ10000000000790441</URL>\n
117
+ \ <CategoryID>177</CategoryID>\n <Title>Simple Laptop Buying: Numbers
118
+ Aren&apos;t Everything</Title>\n <Text>I started out looking for a laptop
119
+ for school: I gave myself a budget and said to myself, &quot;Buy the best laptop
120
+ for the money.&quot; That shouldn&apos;t be hard, I figured. Just compare the
121
+ numbers in speed and memory. Unfortunately, numbers aren&apos;t everything,
122
+ and some numbers are more important than you would think. Here are the basics
123
+ for non-computer-geeks about what I learned. &lt;br&gt;&lt;br&gt;April 11, 2007:
124
+ Please note that this guide was written in early 2006 and is directed mostly
125
+ towards Windows XP or earlier laptops. However, this information will give you
126
+ a very solid start even if you are looking for the latest and greatest. I will
127
+ update this guide in a year or two when I upgrade to a Vista laptop... what
128
+ is top-of-the-line today will be very affordable (and still current) tomorrow!&lt;br&gt;&lt;br&gt;*
129
+ &lt;span style=&quot;font-weight: bold;&quot;&gt;Processor Speed&lt;/span&gt;:
130
+ This is usually given in GHz (1GHz is 1000 MHz). This is a good indication of
131
+ how fast a computer is with a given processor. Unfortunately, this is useless
132
+ for comparing the speed for computers with different processors. For a certain
133
+ computer speed, the processor with the least GHz usually takes less battery
134
+ power and produces less heat.&lt;br&gt;&lt;br&gt;* &lt;span style=&quot;font-weight:
135
+ bold;&quot;&gt;Processor&lt;/span&gt;: This is a good indication of how new
136
+ and fast a computer is, and gives the speed in GHz between different models
137
+ of a processor. Up-to-date processors include AMD Athlon, Pentium 4, Pentium
138
+ Celeron, and Pentium M. Of the four, Pentium M is fastest for a given GHz rating,
139
+ and as of 2006 is a very safe bet. In terms of comparing AMD Athlons and Intel
140
+ Pentiums, I doubt there is an exact formula - each processor has to be compared
141
+ separately. I just decided to go with the Pentium M, as it is more popular and
142
+ gives me more options (but see below in the &quot;advanced stuff&quot;).&lt;br&gt;&lt;br&gt;-
143
+ Centrino: This is a common label emphasize...</Text>\n <CreationTime>2006-03-12T03:06:34.000Z</CreationTime>\n
144
+ \ <UserID>oprya001</UserID>\n </BuyingGuide>\n <BuyingGuide>\n <Name>Best
145
+ Laptops 2006 - ...</Name>\n <URL>http://reviews.ebay.com/Best-Laptops-2006-Buying-Guide_W0QQugidZ10000000001420898</URL>\n
146
+ \ <CategoryID>177</CategoryID>\n <Title>Best Laptops 2006 - Buying Guide</Title>\n
147
+ \ <Text>&lt;h2 style=&quot;margin-left: 40px;&quot;&gt;Best Laptops of 2006&lt;br&gt;&lt;/h2&gt;Of
148
+ course, everyone is entitled to bias when it comes to picking their laptop.
149
+ I have bought and sold laptops and work as an IT professional. Here are my take
150
+ on buying a laptop in 2006.&amp;nbsp; Believe it or not, there are currently
151
+ about a dozen primary laptop groups that are suitable to various people. I&apos;ve
152
+ seen many people frustrate over their laptop performance, it is usually because
153
+ they bought the wrong one to begin with.&lt;br&gt;&lt;br&gt;First thing on most
154
+ IT professionals&apos; minds in 2006 is Windows Vista. The much anticipated
155
+ new version of Windows from Microsoft that is rumored to revolutionize Windows
156
+ computing (it took them about 6+ years to produce it versus the 2 to 3 years
157
+ between the previous Windows). We are all skeptics about Vista&apos;s performance
158
+ on current hardware, if I can put it in layman&apos;s terms: don&apos;t wait.
159
+ Just buy a solid machine today while the sales are going on. Here&apos;s why
160
+ you shouldn&apos;t wait: the new releases of Windows are always buggy and not
161
+ refined, it took Windows XP a few years to mature. Technology gets cheaper by
162
+ the day, if you keep waiting, you don&apos;t have anything to use, just buy
163
+ something and don&apos;t envy new technology. Vista is far away from being the
164
+ best.&lt;br&gt;&lt;br&gt;Second thing is eBay, with a big decisions like dropping
165
+ 2 grand on a laptop, spend a little extra to make sure you&apos;re buying from
166
+ a reputable seller with some sort of buyer protection. I&apos;ve been ripped
167
+ off on eBay many a times. Don&apos;t let it happen! No one will hear your cries.&lt;br&gt;&lt;br&gt;Now
168
+ let&apos;s get down to business and talk about brand names:&lt;br&gt;&lt;br&gt;There
169
+ are many brands to begin with, most of them offer similar specs.&lt;br&gt;&lt;br&gt;Most
170
+ popular laptop brands are (in no particular order): Dell, Apple, Lenovo (IBM
171
+ Thinkpad), HP, Fujitsu, Sony, Gateway, Alienware, Acer, and ...</Text>\n <CreationTime>2006-07-20T20:33:38.000Z</CreationTime>\n
172
+ \ <UserID>aquacs</UserID>\n </BuyingGuide>\n <BuyingGuideHub>http://search.reviews.ebay.com/_PC-Laptops-Netbooks_W0QQucatZ177QQuqtZg</BuyingGuideHub>\n
173
+ \ </BuyingGuideDetails>\n </FindReviewsAndGuidesResponse>\n "
174
+ http_version: '1.1'
@@ -0,0 +1,45 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://open.api.ebay.com:80/shopping?APPID=YOUR-APP-ID&CALLNAME=GetItemStatus&ItemID=110089122715&RESPONSEENCODING=XML&SITEID=0&VERSION=717
6
+ body: !!null
7
+ headers: !!null
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ content-type:
14
+ - text/xml;charset=utf-8
15
+ cache-control:
16
+ - no-cache
17
+ expires:
18
+ - Sat, 25 Dec 1999 00:00:00 GMT
19
+ last-modified:
20
+ - Sat, 23 Jul 2011 18:25:12 GMT
21
+ pragma:
22
+ - no-cache
23
+ server:
24
+ - Apache-Coyote/1.1
25
+ x-ebay-api-build-tag:
26
+ - E731_CORE_BUNDLED_13527319_R1
27
+ x-ebay-api-pool-name:
28
+ - ___cDRidW9rdGZpdWY=
29
+ x-ebay-api-server-name:
30
+ - ___dW0ucnA3MyhgNWU2MDRmKjc3LTQ3KTc3KDUyMTw/Mz02
31
+ x-ebay-esb-guid:
32
+ - urn:uuid:6474491A39FA1E55992798996069531006081665340
33
+ date:
34
+ - Sat, 23 Jul 2011 18:25:12 GMT
35
+ transfer-encoding:
36
+ - chunked
37
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n <GetItemStatusResponse
38
+ xmlns=\"urn:ebay:apis:eBLBaseComponents\">\n <Timestamp>2011-07-23T18:25:12.274Z</Timestamp>\n
39
+ \ <Ack>Failure</Ack>\n <Errors>\n <ShortMessage>Invalid item ID.</ShortMessage>\n
40
+ \ <LongMessage>Invalid or non-existent item ID.</LongMessage>\n <ErrorCode>10.12</ErrorCode>\n
41
+ \ <SeverityCode>Error</SeverityCode>\n <ErrorParameters ParamID=\"0\">\n
42
+ \ <Value>110089122715</Value>\n </ErrorParameters>\n <ErrorClassification>RequestError</ErrorClassification>\n
43
+ \ </Errors>\n <Build>E731_CORE_BUNDLED_13527319_R1</Build>\n <Version>731</Version>\n
44
+ \ </GetItemStatusResponse>\n "
45
+ http_version: '1.1'
@@ -0,0 +1,46 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://open.api.ebay.com:80/shopping?APPID=YOUR-APP-ID&CALLNAME=GetMultipleItems&ItemID=190000456297,280000052600,9600579283&RESPONSEENCODING=XML&SITEID=0&VERSION=717
6
+ body: !!null
7
+ headers: !!null
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ content-type:
14
+ - text/xml;charset=utf-8
15
+ cache-control:
16
+ - no-cache
17
+ expires:
18
+ - Sat, 25 Dec 1999 00:00:00 GMT
19
+ last-modified:
20
+ - Sat, 23 Jul 2011 18:25:12 GMT
21
+ pragma:
22
+ - no-cache
23
+ server:
24
+ - Apache-Coyote/1.1
25
+ x-ebay-api-build-tag:
26
+ - E731_CORE_BUNDLED_13527319_R1
27
+ x-ebay-api-pool-name:
28
+ - ___cDRidW9rdGZpdWY=
29
+ x-ebay-api-server-name:
30
+ - ___dWsucnA3MygxPjtjMWVgKjc3LTw2KTIzPik7MTw/Mz02
31
+ x-ebay-esb-guid:
32
+ - urn:uuid:0818EFD69DD414CBF6269545852485728101187420567
33
+ date:
34
+ - Sat, 23 Jul 2011 18:25:11 GMT
35
+ transfer-encoding:
36
+ - chunked
37
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n <GetMultipleItemsResponse
38
+ xmlns=\"urn:ebay:apis:eBLBaseComponents\">\n <Timestamp>2011-07-23T18:25:12.436Z</Timestamp>\n
39
+ \ <Ack>Failure</Ack>\n <Errors>\n <ShortMessage>Invalid item ID.</ShortMessage>\n
40
+ \ <LongMessage>Invalid or non-existent item ID.</LongMessage>\n <ErrorCode>10.12</ErrorCode>\n
41
+ \ <SeverityCode>Error</SeverityCode>\n <ErrorParameters ParamID=\"0\">\n
42
+ \ <Value>9600579283,190000456297,280000052600</Value>\n </ErrorParameters>\n
43
+ \ <ErrorClassification>RequestError</ErrorClassification>\n </Errors>\n
44
+ \ <Build>E731_CORE_BUNDLED_13527319_R1</Build>\n <Version>731</Version>\n
45
+ \ </GetMultipleItemsResponse>\n "
46
+ http_version: '1.1'
@@ -0,0 +1,45 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://open.api.ebay.com:80/shopping?APPID=YOUR-APP-ID&CALLNAME=GetShippingCosts&DestinationCountryCode=US&DestinationPostalCode=98122&ItemID=110089122715&QuantitySold=1&RESPONSEENCODING=XML&SITEID=0&VERSION=717
6
+ body: !!null
7
+ headers: !!null
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ content-type:
14
+ - text/xml;charset=utf-8
15
+ cache-control:
16
+ - no-cache
17
+ expires:
18
+ - Sat, 25 Dec 1999 00:00:00 GMT
19
+ last-modified:
20
+ - Sat, 23 Jul 2011 18:25:11 GMT
21
+ pragma:
22
+ - no-cache
23
+ server:
24
+ - Apache-Coyote/1.1
25
+ x-ebay-api-build-tag:
26
+ - E731_CORE_BUNDLED_13527319_R1
27
+ x-ebay-api-pool-name:
28
+ - ___cDRidW9rdGZpdWY=
29
+ x-ebay-api-server-name:
30
+ - ___dm8ucm83Nyg2MWRiNzI2Kjc3LTQyKTA1KDYwMzw/Mz02
31
+ x-ebay-esb-guid:
32
+ - urn:uuid:5CD0BB9874BFF7D9EB27285028133348264-1387613499
33
+ date:
34
+ - Sat, 23 Jul 2011 18:25:11 GMT
35
+ transfer-encoding:
36
+ - chunked
37
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n <GetShippingCostsResponse
38
+ xmlns=\"urn:ebay:apis:eBLBaseComponents\">\n <Timestamp>2011-07-23T18:25:11.903Z</Timestamp>\n
39
+ \ <Ack>Failure</Ack>\n <Errors>\n <ShortMessage>Invalid item ID.</ShortMessage>\n
40
+ \ <LongMessage>Invalid or non-existent item ID.</LongMessage>\n <ErrorCode>10.12</ErrorCode>\n
41
+ \ <SeverityCode>Error</SeverityCode>\n <ErrorParameters ParamID=\"0\">\n
42
+ \ <Value>110089122715</Value>\n </ErrorParameters>\n <ErrorClassification>RequestError</ErrorClassification>\n
43
+ \ </Errors>\n <Build>E731_CORE_BUNDLED_13527319_R1</Build>\n <Version>731</Version>\n
44
+ \ </GetShippingCostsResponse>\n "
45
+ http_version: '1.1'
@@ -0,0 +1,44 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://open.api.ebay.com:80/shopping?APPID=YOUR-APP-ID&CALLNAME=GetSingleItem&ItemID=110089122715&RESPONSEENCODING=XML&SITEID=0&VERSION=717
6
+ body: !!null
7
+ headers: !!null
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ content-type:
14
+ - text/xml;charset=utf-8
15
+ cache-control:
16
+ - no-cache
17
+ expires:
18
+ - Sat, 25 Dec 1999 00:00:00 GMT
19
+ last-modified:
20
+ - Sat, 23 Jul 2011 18:25:12 GMT
21
+ pragma:
22
+ - no-cache
23
+ server:
24
+ - Apache-Coyote/1.1
25
+ x-ebay-api-build-tag:
26
+ - E731_CORE_BUNDLED_13527319_R1
27
+ x-ebay-api-pool-name:
28
+ - ___cDRidW9rdGZpdWY=
29
+ x-ebay-api-server-name:
30
+ - ___dm8ucm83Nyg2MWRiNjE6Kjc3LTQyKTA1KDY3NTw/Mz02
31
+ x-ebay-esb-guid:
32
+ - urn:uuid:0818EFD69DD414CBF626954585064478704-181179025
33
+ date:
34
+ - Sat, 23 Jul 2011 18:25:11 GMT
35
+ transfer-encoding:
36
+ - chunked
37
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n <GetSingleItemResponse
38
+ xmlns=\"urn:ebay:apis:eBLBaseComponents\">\n <Timestamp>2011-07-23T18:25:12.072Z</Timestamp>\n
39
+ \ <Ack>Failure</Ack>\n <Errors>\n <ShortMessage>Invalid item ID.</ShortMessage>\n
40
+ \ <LongMessage>Invalid or non-existent item ID.</LongMessage>\n <ErrorCode>10.12</ErrorCode>\n
41
+ \ <SeverityCode>Error</SeverityCode>\n <ErrorClassification>RequestError</ErrorClassification>\n
42
+ \ </Errors>\n <Build>E731_CORE_BUNDLED_13527319_R1</Build>\n <Version>731</Version>\n
43
+ \ </GetSingleItemResponse>\n "
44
+ http_version: '1.1'