Code Monkey home page Code Monkey logo

webmaster-tools-downloads's People

Contributors

biggst avatar

webmaster-tools-downloads's Issues

Downloader.py not returning correct JSON object not working while running

What steps will reproduce the problem?
1. Follow installation steps
2. Run example-simple-download.py

What is the expected output? What do you see instead?
Downloader doesn't work -- isn't returning content back in JSON -- instead 
returning some temporarily moved statement

What version of the product are you using? On what operating system?
latest version of the example scripts and latest version of the google data 
python API as of 1/6/12

Please provide any additional information below.
A sample run:

C:\Users\XXXXX\Desktop\GoogleWebAPI>python example-simple-download.py
https://www.google.com/webmasters/tools/downloads-list?hl=en&siteUrl=neurolex.or
g/wiki  <--- spits out URL downloader.py hits
neurolex.org/wiki
<HTML>
<HEAD>
<TITLE>Moved Temporarily</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Temporarily</H1>
The document has moved <A HREF="https://www.google.com/webmasters/tools/home?hl=
en&amp;siteUrl=neurolex.org/wiki">here</A>.
</BODY>
</HTML> <-- result from the URL given above

Traceback (most recent call last):
  File "example-create-spreadsheet.py", line 186, in <module>
    downloader.DoDownload(website, selected_downloads)
  File "/home/arihant/Documents/rails_various/googlewebmaster/gdata-2.0.18/downloader.py", line 94, in DoDownload
    sites_json = json.loads(available)
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Tried passing fully qualified domains as well getting the same output. One 
strange thing that is happening is that one the site that is added with an 
https full url with no data is working fine rest any other site is not working 
which are added in the account with all access. Please suggest

Original issue reported on code.google.com by [email protected] on 29 Oct 2014 at 3:17

Attachments:

authentication keeps failing

What steps will reproduce the problem?
1. Run the example-simple-download.py file on linux

What is the expected output? What do you see instead?

I'm expecting to see the downloaded file but it keeps throwing the 
BadAuthentication exception.

I've double and triple checked the username and password and they are correct.

Is this a script that cannot be run in a terminal?

What version of the product are you using? On what operating system?

Ubuntu 12.04

Original issue reported on code.google.com by [email protected] on 19 Jul 2013 at 8:07

how to download page urls that are relevant to a keyword

so far we can only download through the following request types

"TOP_PAGES":"/webmasters/tools/top-search-urls-dl
"TOP_QUERIES":"/webmasters/tools/top-search-queries-dl

but what if i want to download the urls that are relevant to a specific keyword 
via this service
webmasters/tools/query-details-dl?hl=en&siteUrl=MYSITEURL%2F&security_token=***&
prop=ALL&region&db=STARTDATE&de=ENDDATE&more=true&query=SOMEKEYWORD&type=URLS&fo
rmat=csv

so i can tell which keywords led to which pages in my site

the same is available through the web master html pages , if i click on a 
certain keyword it will display all URLS that this specific keyword led to it.

Original issue reported on code.google.com by [email protected] on 21 Apr 2013 at 4:59

Downloader.py not returning correct JSON object

What steps will reproduce the problem?
1. Follow installation steps
2. Run example-simple-download.py

What is the expected output? What do you see instead?
Downloader doesn't work -- isn't returning content back in JSON -- instead 
returning some temporarily moved statement

What version of the product are you using? On what operating system?
latest version of the example scripts and latest version of the google data 
python API as of 1/6/12

Please provide any additional information below.

A sample run:

C:\Users\XXXXX\Desktop\GoogleWebAPI>python example-simple-download.py
https://www.google.com/webmasters/tools/downloads-list?hl=en&siteUrl=neurolex.or
g/wiki  <--- spits out URL downloader.py hits
neurolex.org/wiki
<HTML>
<HEAD>
<TITLE>Moved Temporarily</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Temporarily</H1>
The document has moved <A HREF="https://www.google.com/webmasters/tools/home?hl=
en&amp;siteUrl=neurolex.org/wiki">here</A>.
</BODY>
</HTML> <-- result from the URL given above

Traceback (most recent call last):
  File "example-simple-download.py", line 39, in <module>
    downloader.DoDownload(website, selected_downloads)
  File "C:\Users\slarson\Desktop\GoogleWebAPI\downloader.py", line 94, in DoDown
load
    sites_json = json.loads(available)
  File "C:\Python26\lib\json\__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "C:\Python26\lib\json\decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Python26\lib\json\decoder.py", line 338, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded


Original issue reported on code.google.com by [email protected] on 7 Jan 2012 at 3:44

Harpreet

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 27 Dec 2011 at 4:56

Attachments:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.