Need some beta testers for my website: www.riverofguns.com

Status
Not open for further replies.
@damien: Good point - there are always deals if you're willing to keep looking. You've given me an idea on how I might be able to search those sites without having to index them myself. We'll see.

@RonE: Thanks for forwarding the link to your buddies. I would encourage everyone who likes the site to forward it around and link to it from their blogs or other sites.

@godsey5: Yep, that's a good site. I have it in my list.
 
CVR, did you get permission from all those sites for you to crawl them for sell/trade content. Did you realize that most sites don't allow a user to see that portion of the forum until you join?

I like it, but I would think that the sites that have sponsors and copyrighted data might not want you to crawl their site and republish the material or links to that material.

For those suggesting sites for him to crawl, if you don't own that site, you might want to discuss it with the administrator first.

I couldn't give a rip, but I could see where others would.

Good design. Good functionality.

-Steve
 
@JackOfAllTradesMasterAtNone: Yep, I'm aware of the issues - we'll see what happens. Ultimately, I'm delivering more traffic to the various sites - many of which you probably would have never have found on your own, so I think it's an overall net win for the forums.

We're up to 43,000 entries in the DB now. I'll start pruning old data after 30 days, but make it available via an advanced search button. You'll want to search old data to get an idea of price trends.

- chuckr
 
Last edited:
for ads try integraclick or clickbooth which ever they go by now adays they pay pretty well. See if you can get in touch with lee aho. tell him arob sent you
 
Some search updates

@everallm: I got the "-" part of boolean search working now. Give it another try with the search terms you posted before.

As another example, searching on: stripped lower -308
will give you all stripped lowers for sale that are NOT 308.
http://www.riverofguns.com/cb/index.pl?s=stripped+lower+-308


@crebralfix: You must work in QA, because your query was actually a really tough case to get right. The combination of quotes, "&", and "-" drove the mysql query parser nuts. In the end I got it to work, so try it out:

search: S&W -"40 S&W"
http://www.riverofguns.com/cb/index.pl?s=S&W+-"40+S&W"

@drgrenthum: Thanks for the ad network pointers.

@Harold Mayo: Yep, I found out about that site a few days ago. Good! It validates the space! ;)

- cvr
 
I used to do QA and coding. Now I just torture the people who deliver software to the team :)

BTW, perl DBI has a stringy quotification method you can use.

http://oreilly.com/catalog/perldbi/chapter/ch04.html

Database-Specific Quote Handling

By far the most important utility method is quote(), which correctly quotes and escapes SQL statements in a way that is suitable for a given database engine. This feature is important if you have a Perl string that you wish to insert into a database, as the data will be required, in most cases, to have quotation marks around it.

To confuse matters, database engines tend to have a different format for specifying these surrounding quotation marks. DBI circumvents this problem by declaring the quote() method to be executed against a database handle, which ensures that the correct quotation rules are applied.

This method, when executed against a database handle, converts the string given as an argument according to defined rules, and returns the correctly escaped string for use against the database.

For example:

#!/usr/bin/perl -w
#
# ch04/util/quote1: Demonstrates the use of the $dbh->quote() method

use DBI;

### The string to quote
my $string = "Don't view in monochrome (it looks 'fuzzy')!";

### Connect to the database
my $dbh = DBI->connect( "dbi:Oracle:archaeo", "username", "password" , {
RaiseError => 1
} );

### Escape the string quotes ...
my $quotedString = $dbh->quote( $string );

### Use quoted string as a string literal in a SQL statement
my $sth = $dbh->prepare( "
SELECT *
FROM media
WHERE description = $quotedString
" );
$sth->execute();

exit;
For example, if you quoted the Perl string of Do it! via an Oracle database handle, you would be returned the value of 'Do it!'. However, the quote() method also takes care of cases such as Don't do it! which needs to be translated to 'Don''t do it!' for most databases. The simplistic addition of surrounding quotes would have produced 'Don't do it!' which is not a valid SQL string literal.

Some databases require a more complex quote() method, and some drivers (though not all) have a quote() method that can cope with multiline strings and even binary data.

As a special case, if the argument is undef, the quote() method returns the string NULL, without quotes. This corresponds to the DBI's use of undef to represent NULL values, and to how NULL values are used in SQL.
 
This is an excellent idea, and an excellent site, and an excellent service to gun owners of all stripes. Many thanks. I've already posted it on another site that I frequent.
 
Great idea and you have obviously put a lot of thought and effort into it...

BUT...

My first query was "Smith & Wesson model 15" - and it came up blank.

My next attempt was the same without the quotes. All it came up with was a manual for same.

My next query was s&W m 15...it came up with "FS: S&W model 60-15 internal lock"

Next, I tried S&w m 15 and got the following:

WTS/WTT S&W Mod. 15 4” Combat Masterpiece
WTS/WTT S&W Mod. 15 4? Combat Masterpiece W. WA.
WTS: New in box S&W M&P-15 rifle in 5.45x39
WTS: S&W M&P-15
WTS: S&W M&P-15 OR M4 Carbine
A4 STOCK Brand New S&W MP 15
S&W Md 15-4 2"bbl renegade
Taurus 650 & S&W M&P 15 lower with LPK installed
WTT/WTS S&W M&P 15 ORC for handguns
WTT S&W M&P 15 ORC for handguns
S&W M&P 40 15 round mags
S&W M&P 15 ORC for ???? ---Trade only
S&W AR 15 upper for Trade: 5.45 for a 5.56, or sell me one!
S&W model 60-15 internal lock
WTT/ AR-15 S&W M&P15T FTF
WTS parts holsters ar-15 h&k s&w 1911 fal glock etc
WTT S&W M&P 15 ORC for ???? ---Trade only---
The Firing Line NIB S&W MP 15 UPPER AND Carryhandle
WTS S&W M&P 15 stripped lower MarcDW
WTT: Ranger SXT .40 s&w for a complete AR-15 upper
Wts/wtt Ar 15 S & W M&p 15a Nib!

In other words...anything with "S&W" or "15" - only one listing for what I'm looking for. Am I doing something wrong? Keep in mind I am the epitome of the average non-savvy internet user.
 
I really like it...the only trouble I see is that I'm not a user on a lot of those forums, so I can't readily contact a lot of the people that come up.

Generally speaking though, the site is a great idea and does a very good job of pulling up the relevant posts.
 
Looks good. The only suggestion I have is the possiblity of filtering out "SPF" and any other commonly used terms to indicate the piece is sold.
RT
 
I use this site so much already it's ridiculous. I noticed it doesn't search THR but thats probably because you need to be logged in to see the retail forums here. I wish it had a bit of a margin for error, but I have no idea how hard that would be to implement. For instance I was looking up Night Guard yesterday and had to try a couple of ways to get it right. Probably no way you could change that short of having a standard format that people use to list guns on sites, and thats not going to happen :D
 
Hey - sorry to have been away, but will answer some of your questions now.


@minuteman1970: Gun rights and other firearms related topics is a great idea, and something I'd like to do. It's critical to have related content rather than just big lists of things. With the extra, relevant content I'll show up better on Google searches.

@rainbowbob: You were not doing anything wrong, but doing one thing right. If your first attempt at a search doesn't give you enough results - try something a little different! Our industry is full of an endless array of model numbers, model names, three letter acronyms, abbreviations, slashes, dashes, and dots. It's given me fits to try and cover them all, believe me, and the search engines out there don't like dealing with little single character searches.

Your specific problem is that people can describe what you're looking for a number of different ways, so you did the right thing by trying a number of them. I've made the search as "raw" as possible, meaning all the little characters count in the search. The one other search that might have made things cleaner for you would be one that strips out stuff you don't want (like the M&P stuff). So:

S&W m 15 -M&P

where the "-M&P" will get rid of all the AR-15 stuff. Unfortunately that search is currently blank. There are not very many S&W Model 15s out there right now, but keep checking.

- chuckr
 
@armslist: Yes, good point about not being a member of some of the forums. Ultimately it doesn't take much to join a forum when you find something you like, but yeah, it's a pain. I plan on showing the contents of each post in the future. Also, www.armslist.com is in my forum list now, but I'm not yet indexing it. Hope to soon.

@Red Tornado: SPF items should be filtered out now - at least if the TITLE of the post changes to SPF or SOLD. If the issue is that you click a title and then when you're on the other site, you find the item is sold - that's a harder problem. Working on it.

@jawrat: Thanks for the gunsamerica Advertising pointer - I'll check it out.

@MikePGS: Glad you're using the site. Regarding the forums that need logging in - I've coded up a solution for phpBB based forums, but I'm still working on vBulletin based forums. It's very doable and one of my current priorities.

And yeah, as I told @rainbowbob, it's hell trying to index all the different ways people describe things. I think once I'm actually indexing the entire post instead of just the title, it will help a lot. There will be more context to search. The best thing you can do for now is to just try different combinations and see what you get. At least the site is (hopefully) fast.

To everyone else - thanks for all the feedback and good words.

- chuckr
 
Status
Not open for further replies.
Back
Top