Using import.io on a php page - import.io

HI trying to run an import io api on a php page and no data is detected.
Is it possible to obtain data from here
or similar web pages?
Thanks

Yes, you can create an API to a PHP page. I have created an API for this website, without any issue.
https://import.io/data/mine/?id=628e1406-9674-4196-b2e2-43a5f49262f4
You can also paginate nicely with this website, as the URL pattern is consistent and you do not need cookies.
http://www.charityperformance.com/charity-search.php?start=20&cat=&search=
http://www.charityperformance.com/charity-search.php?start=40&cat=&search=
If you would like to chat about a specific issue or website, I would suggest contacting support#import.io for further help.
Thanks,
Meg

Related

How to make API for website that is not mine and also requires a login?

I'm trying to create a react native app that uses data from a website that is not mine. I need to enter a login and password to get into this website.
I was thinking about using a web scraper on the backend to accomplish this, but I wasn't sure this was the best approach or even possible. How should I go about doing this?
If you could find the API from the network tabs, then use that API instead. Web Scrapers are more prone to be unstable, you wouldn't want to change the scraper again and again if someone from the website changes something in their UI. Reach out for API first, scraper should be your last option.

How to make reactjs serve static pages for SEO

I have this reactjs webapp - http://52.26.51.120/
It loads a single page and then you can click links to dynamically load other boards on the same page... such as 52.26.51.120/#/b, 52.26.51.120/#/g
Now the thing is, I want each of these to be an individual page, for the purpose of seo. I want you to be able to google "my-site.com g", and you will see the result 52.26.51.120/#/g. This obviously cant work if you are using reactjs and it is all on one page. Google will only render and cache that main page (can it even render that page? does google execute javascript?)
Even more specifically, id want something like my-site.com/g/1234 to load a thread. There could be a thousand threads every day, so im not sure how to handle that.
Are there any solutions to this? to allow react to possibly serve up static pages as html so that they can be cached on google? I am using expressjs and webpack as my server right now, and all the code is executed in jsx files.
Thanks
You can use Prerender.io service. In a nutshell you will need to connect your server app or web server with prerender service and do little setup (see documentation). After that search engines and crawlers will be served with a static (prerendered) content while users will get classic React.js (or any other single page) app.
There is a hosted service with free tier or open source version
I suspect you could do some smart configuration with nginx and it could convert a url of domain/board to a redirection of domain/#/board when detecting the user-agent as a bot instead of a typical user.

google maps embed api not working on one page not on other

I'm using appgini to create some views on tables. One option is to have an Google maps field.
The strange thing I'm seeing is that the iframe generated by this application is looking good, but I'm getting an error like
The Google Maps API server rejected your request. This IP, site or
mobile application is not authorized to use this API key.
But when I'm copying the generated iframe to a separate html file (on same website) it is working fine.
Example of appgini http://www.cs010.cc/Test/Oefeningen2/Oefeningen_view.php
Example (with exact iframe): http://cs010.cc/Test/test.html
Hope someone can help me with this.
It had to do with the http referrers for the Browser API key.
I changed it to .cs010.cc/ (previously it was http://cs010.cc

Login to OpenERP from another website

After a lot of research, i coudn't find any useful information that could be of use onto my problem.
I am trying to create a login page that redirects to my website. After the user is logged in, that user has access to OpenERP and the whole website.
Any information is useful. I don't understand Python.
Thanks
i think you need top work out on openerp API Configuration
that will help you
You can use ldap kind of things openerp supports oauth2 check here

Create wordpress website Reader for an iOS device i:e showing notification/Reading content only if the site content/feed is updated

I have an idea to develop iOS App which update user if any feed is updated on wordpress website. Please tell the way/steps how i can achieve the same.
I have tried and searched on google but didn't got solution for my problem. This is one thing i got on youtube about web site reader : http://www.youtube.com/watch?v=Bk0d1npGoq4 But, I doesn't have to developer such app which reads web site content, i would like to show notification as soon as feed on the web is updated.
This is the website ( http://www.webhostingbreak.com/ ) whose reader i want to developer.
Please suggest me some solutions or logic which can help me to complete my task.
You've got several way to access the content of a Wordpress blog.
First and easiest solution is to use the basic RSS feed which is available on any Wordpress, and which is compatible with other kinds of websites.
With Wordpress, more specifically, you can use the XML-RPC API embed by the CMS.
This API need to be enable on the Wordpress website and every request will have to be authenticated with a real user to the Wordpress website (you can implement the registration process in the app or use a generic user in every installed app).
You have several library which handle the XML-RPC calls such as https://github.com/corristo/xmlrpc