-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System detecting wrong end date time auctions #7
Comments
@iwalucas I have just tried the server and I had no problem with the |
@ruippeixotog here is one I just picked up: 292496978835 this is the output: there are no custom settings |
That's strange... I have just tried getting that auction and I got the right date: {
"ended": false,
"endingAt": "2018-04-23T17:21:19.000+01:00",
"location": "Riga, default, Latvia",
"bidCount": 0,
"shippingCost": "GBP 5.99",
"currentBid": null,
"id": "292496978835",
"buyNowPrice": "GBP 7.49",
"defaultCurrency": "GBP",
"title": "SI TECH LP Scuba Hose BCD Inflator Dry Suit Standart Fitting Dive 80cm/31.5inch | eBay",
"seller": {
"id": "to_deal",
"feedback": 1411,
"positivePercentage": 100
},
"thumbnailUrl": "https://i.ebayimg.com/images/i/292496978835-0-1/s-l1000.jpg"
} It seems that the date is the only field with wrong information. Are you running this on Windows? What's the locale of your computer? |
I am running on a Mac, with GMT-3 timezone |
Ok, I'm running on Mac too. The fact that you mentioned "Letônia" while I had "Latvia" at the item location points to a difference in localization on the eBay webpage, which can cause this issue if the date is in another place or in another format. It also makes this hard for me to reproduce it... Can you tell me the output of |
sure, here it is:
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
|
I have the same error: root@server:~# http localhost:3647/auction/202601112701
HTTP/1.1 200 OK
Content-Length: 439
Content-Type: application/json
Date: Mon, 18 Feb 2019 17:38:10 GMT
Server: akka-http/10.0.9
{
"bidCount": 0,
"buyNowPrice": null,
"currentBid": "EUR 600.0",
"defaultCurrency": "EUR",
"ended": true,
"endingAt": "1970-01-01T00:00:00.000Z",
"id": "202601112701",
"location": "Cassino, Италия",
"seller": {
"feedback": 44,
"id": "ice_plug",
"positivePercentage": 100.0
},
"shippingCost": "EUR 39.0",
"thumbnailUrl": "https://i.ebayimg.com/images/i/202601112701-0-1/s-l1000.jpg",
"title": "APPLE MACBOOK PRO 13\" RETINA DISPLAY 2015 RAM 8GB SSD 128GB | eBay"
} |
Hi, I am encountering the same issue when requesting auctions from my local eBay (ebay.nl). The date is correctly returned when getting the same auction via ebay.com. Like in the US, the ending date is mentioned also mentioned in the I don't think I'm at the point where date formatting matters, but I have changed it in my
The locale of the environment the server is running in is set to The other data is found and returned just fine. Any idea what could cause only |
I still have no idea what causes the issue, but I have learned two things:
|
Hi @Terr! It sounds plausible that ebay.nl CSS queries have flaws, I didn't test the project with any website other than ebay.com. Do you mind sending me your current |
Hi, thanks for the reply! I have pasted my I had to modify The new date format pattern is correct I think, but because that's something that I needed to change I might have made a mistake there. Here are two random auctions that I tried just now and have a few days remaining:
I did not translate all the text patterns in |
Hi @Terr! Sorry for taking so long to reply. I finally got the chance to look at your config and the problem seems to be that the date pattern in Unfortunately scala-scraper, the library that extracts content from HTML in the server, does not support localization currently. I just opened ruippeixotog/scala-scraper#65, feel free to contribute if you find the time for it 🙂 |
Closing this issue because I'm not officially supporting ebay.nl (even though I'd like to have a config for it here) and I don't have any reproducible example of this failing in ebay.com. |
Thanks for taking the time to investigate. I'm not sure I can contribute code to scala-scraper but I've subscribed to the issue, in case I can help with testing it. Should I get a complete and working config for ebay.nl together in the future I will be sure to create a merge request :) |
I have just deployed the ebay-snipe-server, and all the auctions I am watching are returning something like that:
{"ended":true,"endingAt":"1970-01-01T00:00:00.000Z",...}
So I cannot place a snipe b/c it says auction has ended.
The text was updated successfully, but these errors were encountered: