• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 67746
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: 67746
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
 
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic