search engine for asp.net website - c#

is it a possible to make a search engine to works better than google and yahoo ?
i should do a mini project for my internet engineering course.
my website need a search engine (( asp.net ( c# ) )) Website.
when a user search word in my website, my search engine should send a request to Google,yahoo,... and receive their first page links and show that links as a result in my Website.
in fact i need to send http request to another site and parse the results.
i don't know how should i start and how to do it.
is there any guide for this project ?

Better? No.
The same, yes:
Google custom search API: https://developers.google.com/custom-search/v1/overview

I guess you are looking for something like Google's Custom Search Engine.
Quote from the link:
Make searching your site easy
Sign in to Custom Search Engine With Google Custom Search, add a
search box to your homepage to help people find what they need on your
website.

Related

Is it possible to use google analytics in server?

I have a URLShortener application and I want to use Google Analytics for shorted urls. But I use Response.Redirect() method and I can't use local script of google analytics.
I want to know is it possible to have something like google analytics script in server and run it?
There is the Microsoft Silverlight Analytics Framework which also supports Google Analytics.
I would assume that they do this in C# code, which should be adaptable to be used inside server-side code, too.
Yes, it is possible to use google analytics in server. You need to have a Google Analytics account, as explained here.
After setting up your account they will give you a unique tracking code along with a javascript code which you have to put in your website or master page which you want to track. This javascript code will do all magic for you and you can watch this information from your GA account.
You can even integrate this chart with your website, using the Google chart facility through
Google Analytics Easy Dashboard Javascript Library (more information here).
From this tutorial you can setup your website to catch GA data into your site and display in your own webpage through Google charts.
Sure, it's technically possible. All GA does is set some variables and makes an HTTP request to the GA server, which can be done with JS or by grabbing a gif from the server.
The main issue is that you won't get a lot of the data that you would expect like browser, location, OS version, etc. because the client making the request would be your own server.
It would probably be best to add some event tracking data to the redirected location and track that with GA event tracking, that way you could get a more accurate dataset.
If you do want to continue down the path of most resistance though, this is a pretty good write up of how you'd go about it. http://automateeverything.tumblr.com/post/20500736298/google-analytics-without-javascript-or-cookies It's not C# specific, but you should be able to abstract it.

Query facebook wall of a specific profile

I need to post on a website the wall notifications of a Facebook group, the group and the website belong to the same entity.
I've looked at many of the options available, but I would apreciate if someone with a bit Facebook developing experience told me what is the best path (most straighforward).
The website is not intented to interact with Facebook in any other way, there would exist no Facebook login button, and this one wall would be the only one being consulted.
I've looked at the possibility of grabbing an rss feed from the wall, but that option doesn't seem to exist.
The website is being done with asp.net (c#).
And Social Plug-ins are Exactly for that purpose. For your requirement you can use Live Stream Plugin. Look Here: http://developers.facebook.com/docs/reference/plugins/live-stream/enter link description here
Similar to your choice of getting an RSS feed of the group activity, you can use the Graph API to get the activity as JSON objects, at which point you can render them to your page.

Google webmaster tools API: How to programmatically get a list of backlinks to your site?

I'd like to get a list of the backlinks reported in Google webmaster tools programaticallly but the GData API doesn't include this.
http://code.google.com/intl/sv-SE/apis/webmastertools/docs/2.0/reference.html
Is there any good way to get these links?
What's the best way to get a list of backlinks to a site?
the api does not support it.
i use a fake-script (http://fakeapp.com/ a programmable browser) (any programmable browser will do) which gets executed daily the get this specific data. in my opinion it is the best backlinks data you can get.
There is a php script that you can use to download the backlinks as a csv file which you can then use.
https://github.com/Adduc/php-webmaster-tools-downloads
A pull request was just made to the main repo.

Creating a hook into my facebook app from another site

new to facebook dev and I have read the basics to get a site up and running using the canvas setup. Nice and simple, I have also got the integration with users working ok (i.e. the signed_request).
I was wondering how it works with "sending/posting" data from one site that is anonymous (my own external to facebook) to the facebook site.
The flow I'm after is a user is looking at some content my site A (my own external site) and then clicks the "share on facebook" button (or whatever), which sends the user (and the data they were looking at) to the site B (my facebook app) to which they authenticate and then (and this is the part I dont get) can see that content on their personalised homepage within site B.
So is there a way to POST some kind of data to the facebook site? Or do I need to do something else here?
Thanks a lot.
You use the facebook API located here:
http://github.com/facebook/csharp-sdk
The .zip download includes the api that you can compile, as well as a sample project that uses it.
Reference: http://developers.facebook.com/blog/post/395/
EDIT
Here is some more info regarding the facebook graph api. I think you'll find everything you need in here: http://developers.facebook.com/docs/reference/api/

Simple Facebook Connect Demo in ASP.NET

Does anyone have a simple and successful demo implementation of facebook connect in an asp.net application. I am developing an asp.net web application and want facebook connect to be the primary method for logging in.
I was having troubles as well, but found that this stackoverflow question got me on the right track as far as the server side stuff is concerned
However, First you have to get the facebook connect button working from here Facebook Wiki
Then detect if they are logged in or not and redirect them appropriately to a welcome page.
Detect login via Javascript
Most other actions can be done via serverside with the Facebook ToolKit. (eg get their information, friends, etc..)
The last thing I think I should mention is logging the user out, so take a look at this. Facebook Wiki: Logout
Hope this helps
As I see, all the above examples and links are really outdated. The new Facebook Graph API makes the whole process a lot easier, without the need for any other components:
http://area72.ro/general-it/how-to-login-via-facebook-in-asp-net.html
try to use the toolkit called Facebook Developer Toolkit
you have in Steve Blog a post about it, and you even download he's Starter Kit so you can view all the code :)
Hope it helps
I know you asked for ASP.NET resources. The Facebook Connect page provides some good information as well as the source to a sample implementation using PHP. Hopefully you can pull some good information from the PHP code.
http://developers.facebook.com/connect.php Check out the links on the right side.
The provided demo can be accessed here... http://www.somethingtoputhere.com/therunaround/

Categories