Developing a Ruby on Rails app using information from the 3 taps API. The information I want is from Craigslist. Want to extract information on bikes for sale in the UK.
the following gives me the category information for bikes for sale
{
"code": "SBIK",
"group_code": "SSSS",
"group_name": "For Sale",
"name": "Bicycles"
},
so in my browser i add the following
{
"success": true,
"anchor": 2110058535,
"postings": [
{
"id": 2109916051,
"source": "CRAIG",
"category": "SBIK",
"external_id": "5010763041",
"external_url": "http://ift.tt/1EV9Yqu",
"heading": "WTB: Tri-bike...56-58cm",
"timestamp": 1430838700,
"annotations": {
"source_map_yahoo": "http://ift.tt/1JUka6W",
"source_continent": "USA",
"latlong_source": "In Posting",
"source_heading": "WTB: Tri-bike...56-58cm",
"source_cat": "sss",
"proxy_ip": "104.236.116.193:22225",
"source_state": "North Carolina",
"phone": "5010763041",
"source_account": "5hz2n-5010763041@sale.craigslist.org",
"gzip_data_size": "4170",
"source_loc": "wilmington",
"source_subcat": "bia|bik",
"html_data_size": "12631",
"source_map_google": "http://ift.tt/1EV9Yqw"
},
but when i add the country code -which is GBR i get nothing i have added http://ift.tt/1JUkbYz
but get error {"success":false,"error":"level params not supported in polling"}
when i do a location search it works using the metro field
"locations": [
{
"bounds_max_lat": 57.21864,
"bounds_max_long": -2.06182,
"bounds_min_lat": 57.10158,
"bounds_min_long": -2.22161,
"code": "GBR-ABD",
"full_name": "Aberdeen, United Kingdom",
"short_name": "Aberdeen"
},
{
"bounds_max_lat": null,
"bounds_max_long": null,
"bounds_min_lat": null,
"bounds_min_long": null,
"code": "GBR-BAT",
"full_name": "Bath, United Kingdom",
"short_name": "Bath"
},
but when i add this to my polling search , i cannot get this to return any values for bikes for sale in the uk?
also used &location.city=GBR-MAN to find bikes in manchester which returns error
i get {"success":false,"error":"level, country params not supported in polling"}.
Aucun commentaire:
Enregistrer un commentaire