|Xml Search Feed Plugin Help! |
I hope I can explain this right as to what I am after here and so do hope that someone here will be kind enough to help me with this request?
I am trying to pull results from different search engine affiliate programs that I belong to but none of them seem to know how to help me to create there xml feed for my search engine script.
So here goes, I run a search engine and I need to install my own xml feeds from various other search engines, I have there code or some of it, but the search engine script I use requires that a plugin be used to install these feeds for my visitors to use and search with if this makes sense thus far. So I need to make a plugin from this xml coding to work right. Usually the code is wrapped into PHP as well for the script to pull the results with.
So I need to know if anyone here has any knowledge on how I could make one simple XML feed and just simply put that certain URL to pull there xml feed into my own search engine to show the results with?
Below is a example of how one feed explains it but I am lost here on how to do it in simple terms:
to retrieve search results from our affiliate XML Feed you will need to issue an HTTP Get request as described below.
The required parameters are:
Terms :The search term that is being searched for. Please separate multi-worded search terms with a "+".
Hits_Per_Page : Use this parameter to specify the number of results to return. By default, the search returns 20 results.
affiliate: This parameter allows us to track your earnings when people click on our listings.
subid:This parameter allows you to specify the different channels of traffic that you deliver. Simply replace 'yoursubid' with a number or name that will identify each subid/channel of traffic.
ip: Use this parameter to specify the IP address of the actual user performing the search.
1. Affiliate "ME" wants to obtain 10 results for the search term "web hosting"
[URL...] OF THE SITE.com/cgi-bin/search/mxml.fcgi?Terms=web+hosting&affiliate=#*$!#*$!XX&subid=YOURSUBID&ip=22.214.171.124&Hits_Per_Page=10
As you can see from the above example I am have tried several attempts to get there xml feed to work with another one of my feeds plugins but I am doing something wrong here becuase it does not pull there results when I install it.
Please if anyone here can understand what I am after and can at least shed some light as to where I can look if not here in this forum for a simple step guide to get this to work I would forever be greatful
thank you all in advance who will look into this for me and help me out I greatly appreciate all suggestions on what I might try to get this feed to work with my search engine. I will await some much needed help with this request.
Using a server-side language such as PHP [php.net],
request the XML feed using cUrl [php.net],
pick it apart using an XML Parser [php.net] or transform it into HTML using XSLT [php.net].
When you have your rendered HTML, print [php.net] it to the output stream.
Here's a function that might help get you started:
$session = curl_init($request);
$useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:126.96.36.199) Gecko/20061204 Firefox/188.8.131.52";
curl_setopt($session, CURLOPT_HEADER, false);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
curl_setopt($session, CURLOPT_USERAGENT, $useragent);
curl_setopt($session, CURLOPT_CONNECTTIMEOUT, 2);
$response = curl_exec($session);
I thank you for the response back into this help request, but this is all greek to me I am afraid, let me try to further explain what I need some help with here for this issue if I may:
I run a jomoscript search engine right, and in order for any feeds from say like search feed or revenue pilot to work I have to have a plugin, but that plugin is actually the xml info that the search feed program provides but it is wrapped into a php file so that it will work when I put it into my libs section of my script here.
Trouble is that I have tried to duplicate another plugin code that I had here and just simply try to change out the URL of the feed like say it was called ABC search and I swapped it out for say revenue pilot well that does not work that way as I found out the hard way,
so I have all these affiliate programs that I belong to and they all say use our feed but again I really could use some simple to follow steps here if you can further assist me as to how I can create a xml feed plug-in for my search engine script.
I can post the plugin in code here for one of the feeds that I have if that is allowed here on this forum?, but I wanted to ask before I just post it here so that maybe that will better help me to explain what I need some really desperate help here with to achieve this,
I no it can't be that hard to achieve but I must be simply missing just one piece or 2 that would make the search feed plug-in work and pull the search results for my visitors when they perform a search using my search engine script that is what is needed to work with this certain search engine script here of mine?
thanks a lot and I will await a much needed reply back further into this post and thread topic, I am so hoping that someone here who has the knowledge and expertise will share it here with me so that I can try to proceed with this.
I'm having trouble understanding what you're doing - I've never used "jomoscript" or "revenue pilot"... but I'll paraphrase and you can tell me if I'm close.
You subscribe to several affiliate programs, all of which offer their data in an XML feed. You'd like to aggregate those feeds into one "search engine" - allowing the user to type in a keyword, and get results back, from the whole collection of search feeds and affiliate programs.
Am I close?
On that assumption, I'm assuming each of these affiliate feeds deliver XML in a different schema. It's trivial to request the feed and get the results back - the function above will do that (PHP5). But since most feeds deliver their results in a different schema, you'll need a customized parser for each.
For example, some feeds might wrap their data in <item id="123">widget</item>, another will wrap it up in <widget name="item" id="123"/>, another may look like <item type="widget"><id>123</id></item>. Writing those parsers is going to be a special challenge.
The PHP function I pasted in above does one simple thing: it makes an HTTP request to a URL, and returns the response. for instance you would do this:
$xml = getXML($URL_of_your_feed);
then the variable $xml will be a string which contains all the XML.
Once you have that, you'll need to parse it - extract the data into a meaningful structure that can be displayed on your web page.
When you put this URL (with values substituted in appropriately) into the address bar of a browser, do you get XML back?
|http://www.URL OF THE SITE.com/cgi-bin/search/mxml.fcgi?Terms=web+hosting&affiliate=#*$!#*$!XX&subid=YOURSUBID&ip=184.108.40.206&Hits_Per_Page=10 |
Getting down to brass tacks:
|assist me as to how I can create a xml feed plug-in for my search engine script |
The quickest way to get this done is to hire a programmer for a few days. Put out a classified ad trolling for a freelancer, or look at some of the outsourcing agencies that exist on the web. You'll get the best value for your time and a greater likelihood of finishing your project quickly.
By the way, I saw that you asked this same question 2 years ago, but didn't get a response. So I presume this is a project you've been working on intermittently for a long time?
thank you for the reply back once again to this topic, yes you assumed right there that is exactly what I am needing the help with for this topic
Yes I did post this 2 years back but at that time I never did get a reply back as at that time the script owner was still around and thus did help with some of the plugins, but they have closed shop so to speak as did some of those plugins that he created for me at that time have also closed shop. And no one really understands how to create these plugin xml feeds any longer?
so yes indeed I have been working on this for that long, not just this feed mind you, I have been able to get one feed to work as I already had a plugin for another search feed here and since the other affiliate program used the same type of script I was able to duplicate that one and get it to work.
The one that you used in your example there was the one that I seem to be having the most trouble with as yes they wrapped there xml feed in the mxml.fcgi? type and so to just copy there xml string into the plug in that I have here wont read it right, as I have tried several of the ones that I had here up to now.
I have tried as well to ask the search engine feed to help me create it to pull there results as some of the other search engine feeds that I work with have helped me as this jomoscript again is not being worked on any longer by the owners of the script.
SO I saw this thread here and once again thought just maybe some one here now could better assist me with this issue as it has been 2 years gone by and that maybe someone here now would better understand how to create these so that I could follow along and get one working.
If you could be so kind as to provide me with some simple steps I could try since you now better understand what I was trying to explain I sure would very much appreciate it.
Again I could provide the xml coding here from the xml plugin that I currently have if you think it would better help you or maybe another member here help me to shed some light on how I could get the xml feed to work or to create one from the coding I already have here and thus does work to pull the results from another feed just not the one that is using .mxml.fcgi? format.
I thank you once again and hope that you can further assist me with trying to create this
starz342, this really is the kind of situation where you'll need to hire a freelancer who can look at your scripts and solve the problem. Writing plugins for an obscure system like jomoscript isn't something that can be done effectively via long questions posted in a forum. I suggest you either look for someone locally in Merrillville, or hire someone from one of the many online "rent-a-geek" type services.
What you're asking advice for is a big, complicated job. It's like trying to rebuild a carburator over the telephone with a mechanic. Sometimes no matter how DYI you want to be, it makes more sense just to hire a mechanic.