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

  • Home
  • SEARCH
  • 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 736293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:35:16+00:00 2026-05-14T07:35:16+00:00

For example I need to grab from http://gmail.com/ the number of free storage: Over

  • 0

For example I need to grab from http://gmail.com/ the number of free storage:

Over <span id=quota>2757.272164</span> megabytes (and counting) of free storage.

And then store those numbers in a MySql database.
The number, as you can see, is dynamically changing.

Is there a way i can setup a server side script that will be grabbing that number, every time it changes, and saving it to database?

Thanks.

  • 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-14T07:35:17+00:00Added an answer on May 14, 2026 at 7:35 am

    Since Gmail doesn’t provide any API to get this information, it sounds like you want to do some web scraping.

    Web scraping (also called Web
    harvesting or Web data extraction) is
    a computer software technique of
    extracting information from websites

    There are numerous ways of doing this, as mentioned in the wikipedia article linked before:

    Human copy-and-paste: Sometimes even
    the best Web-scraping technology can
    not replace human’s manual examination
    and copy-and-paste, and sometimes this
    may be the only workable solution when
    the websites for scraping explicitly
    setup barriers to prevent machine
    automation.

    Text grepping and regular expression
    matching: A simple yet powerful
    approach to extract information from
    Web pages can be based on the UNIX
    grep command or regular expression
    matching facilities of programming
    languages (for instance Perl or
    Python).

    HTTP programming: Static and dynamic
    Web pages can be retrieved by posting
    HTTP requests to the remote Web server
    using socket programming.

    DOM parsing: By embedding a
    full-fledged Web browser, such as the
    Internet Explorer or the Mozilla Web
    browser control, programs can retrieve
    the dynamic contents generated by
    client side scripts. These Web browser
    controls also parse Web pages into a
    DOM tree, based on which programs can
    retrieve parts of the Web pages.

    HTML parsers: Some semi-structured
    data query languages, such as the XML
    query language (XQL) and the
    hyper-text query language (HTQL), can
    be used to parse HTML pages and to
    retrieve and transform Web content.

    Web-scraping software: There are many
    Web-scraping software available that
    can be used to customize Web-scraping
    solutions. These software may provide
    a Web recording interface that removes
    the necessity to manually write
    Web-scraping codes, or some scripting
    functions that can be used to extract
    and transform Web content, and
    database interfaces that can store the
    scraped data in local databases.

    Semantic annotation recognizing: The
    Web pages may embrace metadata or
    semantic markups/annotations which can
    be made use of to locate specific data
    snippets. If the annotations are
    embedded in the pages, as Microformat
    does, this technique can be viewed as
    a special case of DOM parsing. In
    another case, the annotations,
    organized into a semantic layer2,
    are stored and managed separated to
    the Web pages, so the Web scrapers can
    retrieve data schema and instructions
    from this layer before scraping the
    pages.

    And before I continue, please keep in mind the legal implications of all this. I don’t know if it’s compliant with gmail’s terms and I would recommend checking them before moving forward. You might also end up being blacklisted or encounter other issues like this.

    All that being said, I’d say that in your case you need some kind of spider and DOM parser to log into gmail and find the data you want. The choice of this tool will depend on your technology stack.

    As a ruby dev, I like using Mechanize and nokogiri. Using PHP you could take a look at solutions like Sphider.

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

Sidebar

Related Questions

There is an online file (such as http://www.example.com/information.asp ) I need to grab and
For example, I need to grab an unknown number, let's say 3, and find
I have a string that looks like: http://www.example.com/index.do/blah/1_44/asdf/asdf/asdf http://www.example.com/index.do/blah/1_44_2342/asdf/asdf/asdf I need to grab the
A specific example I need to generate a random number between 0 and 2,
I need an example of the shortest path of a directed cyclic graph from
My goal is to understand every single bit of the following example: http://code.google.com/p/google-api-java-client/wiki/AndroidAccountManager I
I need to grab the statuses from a Facebook page via PHP to display
I need grab the path of a referring URL, which can be served from
I need to update my solr documents with detailed informations i can grab from
The current url http://www.example.com/search/?accommodation=1&venue=&seating=2&min=&max=&feature_list=7|8|9 Is there a way in jquery how can i grab

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.