Re: Pricing (Scripts and Notes)
So would anyone be interested in helping secure my site(mtgotraders.com) from scrapping? I would pay of course.
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=32&t=2324
I actually have something like this on my list of things to do / learn. Not necessarily to secure your site specifically but figure out how to generate images using php. Its a low priority at the moment though. Lately been working on my firearm proficiencywilmheath wrote:So would anyone be interested in helping secure my site(mtgotraders.com) from scrapping? I would pay of course.
Yeah i'm hoping to find someone that knows how to setup bot traps without catching legit bots and users.woogerboy21 wrote:I actually have something like this on my list of things to do / learn. Not necessarily to secure your site specifically but figure out how to generate images using php. Its a low priority at the moment though. Lately been working on my firearm proficiencywilmheath wrote:So would anyone be interested in helping secure my site(mtgotraders.com) from scrapping? I would pay of course.
There may be a way, unless the bot making the request uses some fancy way to identify itself when making an http get request the only other way I can see would be identifying and blocking source IP address's. If anyone has any other idea's I can't see how the web server itself would be able to determin what is a bot and what isn't. When your presenting data to the general public most communication is generic and with that makes it hard to identify specifics.Yeah i'm hoping to find someone that knows how to setup bot traps without catching legit bots and users.
Well the way a trap works is you setup a hidden icon with a link. The bots always go to it since they are going through the site's code instead of viewing the site like a human would with a browser. Once the bot hits the "trap" it is added to the block list and then immediately banned from the server.woogerboy21 wrote:There may be a way, unless the bot making the request uses some fancy way to identify itself when making an http get request the only other way I can see would be identifying and blocking source IP address's. If anyone has any other idea's I can't see how the web server itself would be able to determin what is a bot and what isn't. When your presenting data to the general public most communication is generic and with that makes it hard to identify specifics.Yeah i'm hoping to find someone that knows how to setup bot traps without catching legit bots and users.
That would work but wouldn't stop "approved" bots (if there were any in your mind).wilmheath wrote:Well the way a trap works is you setup a hidden icon with a link. The bots always go to it since they are going through the site's code instead of viewing the site like a human would with a browser. Once the bot hits the "trap" it is added to the block list and then immediately banned from the server.woogerboy21 wrote:There may be a way, unless the bot making the request uses some fancy way to identify itself when making an http get request the only other way I can see would be identifying and blocking source IP address's. If anyone has any other idea's I can't see how the web server itself would be able to determin what is a bot and what isn't. When your presenting data to the general public most communication is generic and with that makes it hard to identify specifics.Yeah i'm hoping to find someone that knows how to setup bot traps without catching legit bots and users.
Not off the top of my head, the script code is exactly the same between the 3 scripts. The only difference would be the variable that defines what html block to identify containing the specific pricing data. My guess (just a guess) there site has something going on.Mr.C wrote:Any ideas on why the TCGPlayerLOW takes overnight to run, while the others finish in minutes? I'm doing in again now, and it looks like it will take a billion years again...
script version 1.0
this pricing script is designed for individuals to create or collect there own pricing information in whatever means they so choose and import that information into the magic album application.
to do so create the file "cardprices.txt" in the root folder of the magic album application. inside the file each line represents a card and its associated information. the expected line format is as follows:
(cardname{tab}cardprice{tab}setname{tab}cardlanguage{tab}cardversion{tab}foil/nonfoil)
valid complete example line:
Abuna Acolyte 0.24 Scars of Mirrodin English * nonfoil
Abuna Acolyte 0.24 Scars of Mirrodin English 0 nonfoil
valid part-complete example line:
Abuna Acolyte 0.24 Scars of Mirrodin
invalid line examples:
Abuna Acolyte 0.24 SOM eng 0 nonfoil
Abuna Acolyte 0.24 Scars of Mirrodin english 0 nonfoil
Abuna Acolyte 0.24 eng 0 nonfoil
requirements:
setname must match setnames defined in "tab" table (see below)
cardlanguage must match a language defined in the suplang table (see below)
price values must not contain commas
you must define a card name
you must define a card price
you must define a card set nam
all other values if not present will use default values listed below
defaults:
cardlanguage will default to english (eng)
cardversion will default to * (all versions)
cardfoiling will default ot nonfoil
That would be a feature request that Goblin Hero would need to implement. There isn't a way for me to have that in the lua scripts (kinda). I could put in a conversion variable and it would convert the US dollar to Euro but a user would always have to set the variable value for the current price of the Euro and inside the application you would still always see the US $.kristijanH wrote:Is it possible to make a dollar/euro etc. converter inside MA?