[Error] Error: Invalid item number
HTML frontend for esniper - running on your own server
Brought to you by:
knutkohl
I'm getting on everything I try
[Error] Error: Invalid item number (330679302368) or [Buy-It-Now] article!
although I spotted a previous similar issue that was closed without a helpful result.
doing esniper -inb -c <file> 330679302368 0"
gives me
Auction 330679302368: Pentax K5 Superb Quality Digital Single Lens Reflex Cameras
Time remaining: 3 days 9 hours 37 mins (293820 seconds)
End time: 04/02/2012 20:14:11
Currently: 351.00 (your maximum bid: 0)
# of bids: 10
High bidder: private listing - bidders' identities protected (NOT stevedhoward)
Auction 330679302368: Bid price less than minimum bid price
syetm info file
csv trace.. sorry missed that before
the html of the ebay item it caches and tries to pars
Sorry didn't include all the files
have also attached a trace of what happens when I try to add an auction and the html it downloads and tries to parse
Hi the issue appears to be that
application/classes/ebayparser/co_uk.xml
no longer matches the ebay layout.
I fixed the issue by changing
~<title>(.*?) on eBay.*?</title>~is => 1
to
~<title>(.*?) eBay.*?</title>~is => 1
to try and match
</script><title>Pentax K5 Superb Quality Digital Single Lens Reflex Cameras | eBay</title>
which is how the line now appears on ebay
as my grasp of regular expressions is limited and I don't know yet if this fixes everything I'll leave this here so someone more knowledgeable can fix this properly.
also note I upgraded to a better version of ps (ipkg install procps) which gets rid of the other error in the trace, but didn't fix this issue.
thanks
Steve
Hi,
I'd suggest changing that regular expression to the following
~<title>(.*)\s*|\s*eBay.*</title>~i => 1
That results in omitting the final blank and separator character from the item title.
The benefit of the new ebay title layout is the fact that it's now equal for many countries (at least tested with the German and UK site).
Still we have no solution for parsing the auction end time.
Hi
thanks.
I've sorted out parsing the end time and that works fine, but there are still quite a few other bits that are not parsing correctly, once I've sorted those I'll let you know.
I'm getting the hang of this, so the rest shouldn't take too long.
changes to co_uk.class.php co_uk.xml main.xml main.xml
Hi
I've uploaded ebayparser_main_and_uk.rar which includes changes to title, end time, and price.
these seem to work.
My knowledge of php and regular expressions is almost zero so they could probably do with some tidying, and I have no idea how to do patches etc.
also I'm not actually bidding on anything at the moment so have no idea what else may be wrong.
so if someone could have a look at what I have done I'd be grateful.
thanks
steve
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
stevedh,
Can you please post your code changes into a message.
I've tried on two separate machines using three different RAR expanders and cannot extract the files from your uploaded archive. Either that or upload it in ZIP format.
Thanks.
Last edit: Anonymous 2015-07-01
changes to co_uk.class.php co_uk.xml main.xml main.xml (replace broken rar file)
Hi, I'm a bit busy at the moment so I've just uploaded a zip version.
I also had problems downloading and extracting the rar, although the original I still had works fine
I have downloaded and tested the zip and that's fine, but I can't remove my old rar file.
let me know if you have any problems, if you do I'll post the changes into a message when I have some time
ta
Steve
Well done Steve! Your ZIP file extracts OK and the patched files have fixed my es-f installation.
excellent, thank you, your files fixed this issue for me too. Great effort.
Nice work - the patch does the job.
Many Thanks
de fix.. note months need doing
ok just added de versions as someone wanted them.
note I'm not sure what ebays abbreviation for the months are and have only done Mär as I could just copy and paste that.. so line 31 in de.class.php will need fixing
Unfortunately the used date parsing functions of php are failing to recognise the abreviations used by ebay, especially for March (in German März - note the A-Umlaut).
For the fellows observing German ebay pages ( as I do) I have posted a solution for the recent problems in parsing the end-date here:
http://mannsspace.co.de/ebayparser/
(rename de.class.php.txt to de.class.php)
I have Steve's patch loaded and watched the es-f countdown process on an item I was bidding on through to the end. I won the item but es-f doesn't think so. It shows the item in a pink bar. Whereas this is not a problem bidding on an individual item it could prove expensive if wishing to obtain only one item from a list of ten and all ten are won.
I'm going to try it on another item to see if it was just a one-time error. Anyone else winning items not shown as won using Steve's patch?
I just set up my es-f to bid on another item. It won the item and correctly showed it with a green background this time.
I finally got it working for Germany.
http://init0.raverjk.de/jk/esf/ebayparser_de.zip
raverik, this does not work any longer. Has anyone a working setup?