• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Scraping data

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I thought I'd try my hand at getting data from another website and placing it in mine,


I'm getting the error message


Is there a way around this?


Edit: I just attemped





Currently getting error

Which is

So I changed to

Although it removes the error nothing is been shown in selected element


And this

 
Sheriff
Posts: 67590
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the PHP forum.

Without assist form the server, you cannot use CORS to overcome security policies.

Does the server you are trying to get info form not have an API to get the data rather than resorting to screen scraping?

Have you checked that what you are doing is legal in your area?
 
kevin lockard
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Moved to the PHP forum.

Without assist form the server, you cannot use CORS to overcome security policies.

Does the server you are trying to get info form not have an API to get the data rather than resorting to screen scraping?

Have you checked that what you are doing is legal in your area?



Ah sorry, I thought it might be Ajax related, it's the BBC I never thought of looking to be honest, I'll look into it now thanks.
 
Bear Bibeault
Sheriff
Posts: 67590
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're going to have an issue trying to do this with Ajax because of the cross-browser security issues.

Usually this sort of things are done on the server where the rules are more lax.
 
kevin lockard
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:You're going to have an issue trying to do this with Ajax because of the cross-browser security issues.

Usually this sort of things are done on the server where the rules are more lax.



I think for now this one is still a little out f my skill range, after a little more time I'll try it again
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic