Pricing (Scripts and Notes)
by Goblin Hero
Moderators: charmer, CCGHQ Admins
Re: Card Pricing
by woogerboy21 » 10 Jun 2010, 03:40
Alright so after I dont know how long, btw did I mention how much I dislike lua's patterns
, here is another script for the http://www.tcgplayers.com site. Currently this script only detects the "high" value of the card(s). I may work in either mid or low prices but for now this is it 
, here is another script for the http://www.tcgplayers.com site. Currently this script only detects the "high" value of the card(s). I may work in either mid or low prices but for now this is it - Attachments
-
TCGPlayer.zip- (2.3 KiB) Downloaded 775 times
-

woogerboy21 - HQ Team Member
- Posts: 1136
- Joined: 19 Jul 2009, 00:15
- Location: USA
- Has thanked: 21 times
- Been thanked: 152 times
Re: Card Pricing
by kristijanH » 12 Jul 2010, 17:51
How do I make other prices available? I copied the csv's and lua files to prices but when I try to update the prices nothing happens: I have TCG player, MTG Fanatic and ABU games.
- kristijanH
- Posts: 218
- Joined: 24 Nov 2009, 13:49
- Has thanked: 52 times
- Been thanked: 11 times
Re: Card Pricing
by Goblin Hero » 12 Jul 2010, 18:36
Put .lua into Prices folder, restart the program, go to Price-Manage, select price, press update.
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
-

Goblin Hero - Site Admin

- Posts: 1996
- Joined: 23 Oct 2005, 09:37
- Location: Russia
- Has thanked: 237 times
- Been thanked: 353 times
Re: Card Pricing
by kristijanH » 12 Jul 2010, 19:21
Looks like it's working. I just got inpatient. How long does it last to fully update? 10min? 30 min? More?
Edit: I use MA on 2 computers. Can I just copy the csv files so I don't have to download it twice?
Edit: I use MA on 2 computers. Can I just copy the csv files so I don't have to download it twice?
- kristijanH
- Posts: 218
- Joined: 24 Nov 2009, 13:49
- Has thanked: 52 times
- Been thanked: 11 times
Re: Card Pricing
by Goblin Hero » 12 Jul 2010, 19:30
Depends on your internet speed.kristijanH wrote:long does it last to fully update?
Yes.kristijanH wrote:Edit: I use MA on 2 computers. Can I just copy the csv files so I don't have to download it twice?
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
-

Goblin Hero - Site Admin

- Posts: 1996
- Joined: 23 Oct 2005, 09:37
- Location: Russia
- Has thanked: 237 times
- Been thanked: 353 times
Re: Card Pricing
by woogerboy21 » 15 Jul 2010, 02:21
Hey Goblin Hero, has anything changed in the 1.1.1 release in regards to the card names or card name formating in the database? The reason I ask is it looks like all the pricing scripts now fail to add a price to any card with a quotation mark in its name (such as angel's feather). It worked in previous versions and I know I haven't changed any code in any of the pricing scripts I have been working with.
-

woogerboy21 - HQ Team Member
- Posts: 1136
- Joined: 19 Jul 2009, 00:15
- Location: USA
- Has thanked: 21 times
- Been thanked: 152 times
Re: Card Pricing
by Goblin Hero » 15 Jul 2010, 08:26
Yes. Redownload update package again - I've made the fixes.woogerboy21 wrote:has anything changed in the 1.1.1 release in regards to the card names or card name formating in the database?
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
-

Goblin Hero - Site Admin

- Posts: 1996
- Joined: 23 Oct 2005, 09:37
- Location: Russia
- Has thanked: 237 times
- Been thanked: 353 times
Re: Card Pricing
by rjp14 » 20 Jul 2010, 18:40
Could anyone please do card pricing scripts for the following sites:
gamingetc.com
channelfireball.com
http://www.oldschoolgaming.net
This would be greatly appreciated as I find these sites to be some of the most price point competitive.
Thanks in advance
gamingetc.com
channelfireball.com
http://www.oldschoolgaming.net
This would be greatly appreciated as I find these sites to be some of the most price point competitive.
Thanks in advance
- rjp14
- Posts: 67
- Joined: 13 Jul 2010, 03:34
- Has thanked: 0 time
- Been thanked: 0 time
Re: Card Pricing
by woogerboy21 » 20 Jul 2010, 22:24
Looks like the HTML responses from those sites are parseable. If anyone else wants to pitch in feel free to. If not I will add it to the list of things to do. (sorry backed up at the moment with other priorities)rjp14 wrote:Could anyone please do card pricing scripts for the following sites:
gamingetc.com
channelfireball.com
http://www.oldschoolgaming.net
This would be greatly appreciated as I find these sites to be some of the most price point competitive.
Thanks in advance
-

woogerboy21 - HQ Team Member
- Posts: 1136
- Joined: 19 Jul 2009, 00:15
- Location: USA
- Has thanked: 21 times
- Been thanked: 152 times
Re: Card Pricing
by woogerboy21 » 26 Jul 2010, 03:35
Every time I work on a pricing script its like I have to relearn lua's pattern matching functionality (guess thats what happens when you dont typically use something.)
A recent online trade caused me to throw together a script for starcitygames. Attached is the (messy but functional) file. I have the groundwork laid out for the set structure but have not populated each set id to there database. It only has the M10 and beyond set's configured. If you want the rest feel free to populate it or wait till I get around to doing it.
Also I still am working on the other pricing script requests, I haven't forgot
A recent online trade caused me to throw together a script for starcitygames. Attached is the (messy but functional) file. I have the groundwork laid out for the set structure but have not populated each set id to there database. It only has the M10 and beyond set's configured. If you want the rest feel free to populate it or wait till I get around to doing it.
Also I still am working on the other pricing script requests, I haven't forgot
- Attachments
-
StarCityGames.zip- (2.25 KiB) Downloaded 699 times
-

woogerboy21 - HQ Team Member
- Posts: 1136
- Joined: 19 Jul 2009, 00:15
- Location: USA
- Has thanked: 21 times
- Been thanked: 152 times
Re: Card Pricing
by rjp14 » 26 Jul 2010, 17:54
I updated two of the pricing scripts to grab the info for M11. I have attached them below.
- Attachments
-
MTGFanatic.rar- MTGFanactic M11
- (2.3 KiB) Downloaded 507 times
-
ABUGames.rar- ABUgames M11
- (2.37 KiB) Downloaded 510 times
- rjp14
- Posts: 67
- Joined: 13 Jul 2010, 03:34
- Has thanked: 0 time
- Been thanked: 0 time
Re: Card Pricing
by woogerboy21 » 26 Jul 2010, 19:02
Thanks. I had them updated locally just hadn't got around to posting them. Wouldn't happen to want to work on the starcitygames pricing script would you? Its functional just needs the structure updated to include all the url information for each set on there site. I got it working last night and posted it but moved on to the 3 sites you had requested. Which I have collecting data and identifying card names and prices. I'm having trouble getting the pattern matching working for the blocks of data that contains both name and price for those 3 sites for some reason. They all look like they use the same exact backend database / html format. I'll figure it out, just doesnt seem to be liking the patterns I thought would work.rjp14 wrote:I updated two of the pricing scripts to grab the info for M11. I have attached them below.
-

woogerboy21 - HQ Team Member
- Posts: 1136
- Joined: 19 Jul 2009, 00:15
- Location: USA
- Has thanked: 21 times
- Been thanked: 152 times
Re: Card Pricing
by woogerboy21 » 26 Jul 2010, 20:27
Alright Goblin Hero. I am stumped and could use some help from someone that might have more lua experience than I once again.
I've been working on this pattern all day and just cant figure out why its not finding it. Here is the code:
- Code: Select all
<tr id="product_40544" class="odd">
<td valign="top">
<a id="thumb40544" href="http://hive.crystalcommerce.com/photo/file/2018/344515/large/Act_of_Treason.jpg" class="highslide thumbnail" onclick="return hs.expand(this)"><img src="http://hive.crystalcommerce.com/photo/file/2018/344515/thumb/Act_of_Treason.jpg" title="Click to enlarge" /></a>
<div class="highslide-caption product_controls" id="caption-for-thumb40544">
Use arrow keys to navigate.<br />
<a href="/catalog/magic_singles-core_sets-magic_2011_/act_of_treason/40544">View Details</a>
</div>
</td>
<td width="100%" valign="top">
<a href="/catalog/magic_singles-core_sets-magic_2011_/act_of_treason/40544">Act of Treason</a><br />
<span style='font-size:84%'>
<strong>Rarity</strong>: <a href='/catalog/magic_singles-core_sets-magic_2011_/280?filter[8]=U'>U</a>
|
<strong>Color</strong>: <a href='/catalog/magic_singles-core_sets-magic_2011_/280?filter[5]=Red'>Red</a>
</span>
<table class="invisible-table" width="100%">
<tr id="variant_355212" class="variantRow">
<td class="variantInfo" width="47%">Condition: English | Unplayed</td>
<td align="right" width="13%">$0.03</td>
<td align="right" width="10%">x 82</td>
<td align="right" width="30%"><form action="/cart/add/40544?vid=355212" method="GET" onsubmit="new Ajax.Request('/cart/add/40544?vid=355212', {asynchronous:true, evalScripts:true, method:'get', parameters:Form.serialize(this)});return false;"><input id="item_40544_355212_qty" name="qty" size="1" tabindex="2" type="text" value="0" /><a href="#" onclick="add_amount_to_field($('item_40544_355212_qty'),1); return false"><img src="/images/icons/16x16/shadow/add.png" class="plus_button"></a><input class="add_to_cart catalog" name="commit" type="submit" value="Add to Cart" /></form></td>
</tr>
</table>
</td>
</tr>
-

woogerboy21 - HQ Team Member
- Posts: 1136
- Joined: 19 Jul 2009, 00:15
- Location: USA
- Has thanked: 21 times
- Been thanked: 152 times
- rjp14
- Posts: 67
- Joined: 13 Jul 2010, 03:34
- Has thanked: 0 time
- Been thanked: 0 time
Re: Card Pricing
by woogerboy21 » 26 Jul 2010, 22:46
Alright I give up ... I f'n hate lua (or maybe its my lack of knowledge). So I read and read and read and read and I have a simple line of:
Or how about "<td align=.right. width=.13%%.>$0.04</td>" ... crash!
/ragequit!
- Code: Select all
<td align="right" width="13%">$0.04</td>
Or how about "<td align=.right. width=.13%%.>$0.04</td>" ... crash!
/ragequit!
-

woogerboy21 - HQ Team Member
- Posts: 1136
- Joined: 19 Jul 2009, 00:15
- Location: USA
- Has thanked: 21 times
- Been thanked: 152 times
Who is online
Users browsing this forum: No registered users and 11 guests