Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5949253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:13:22+00:00 2026-05-22T17:13:22+00:00

I want to do some basic scripting and I’m trying to do it in

  • 0

I want to do some basic scripting and I’m trying to do it in javascript. I want to basically download a wikiquote page and scrape it.

What’s the best way to do this? How do I get the page? I tried to do it via jQuery.get()

$.get('http://en.wikiquote.org/wiki/Last_words', function(data) { console.log(data); })

But the log is simply some error object and the console displays

XMLHttpRequest cannot load
http://en.wikiquote.org/wiki/Last_words.
Origin null is not allowed by
Access-Control-Allow-Origin.
en.wikiquote.org/wiki/Last_words

GET http://en.wikiquote.org/wiki/Last_words
undefined (undefined)

So I guess I’m not taking the correct approach. What should I be doing?

Also, once I DO download the file, what tools are available for me to traverse it? XPath? RegEx? Is there a way to generate a DOM model from it and attach jquery?

An interesting possibility would be to somehow just open a tiny pop-up which downloads the page and then run my script to scrape the page and return data. I am aware this sounds lot like script injection. Is it even possible to do this in a friendly manner?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:13:23+00:00Added an answer on May 22, 2026 at 5:13 pm

    Assuming you are limiting yourself to JavaScript running in the browser, and documents that are not on the same host as the page running the script — you can’t.

    The Same Origin security policy makes this impossible. Without it a webpage could request data from any site (including LAN sites) that the user can access, with their ip address, their cookies, and anything else that might be used for authentication. (All your banking are belong to us).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok. I know this is very basic. I want to have some basic tags
I want to do some basic filtering on a file. Read it, do processing,
I want to run some basic checks when my ASP.NET server goes up. Mostly
I want to some very basic IronRuby tests, such as checking the syntax on
I want to use some basic struct in C like the following: struct p
Hi have some forms that I want to use some basic php validation (regular
I want to use Shark on OS 10.5 to do some basic profiling of
I have a storyboard(1) that does some basic animations in 2 seconds. I want
I want to create a simple http proxy server that does some very basic
Problem The basic problem is I want to debug some 3rd party code to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.