Skip to content

No data in rows when I try to extract Query by Page using the searchconsole API wrapper #3

Description

@Anubhavixigo

Hi @jcchouinard

I tried your code on https://www.jcchouinard.com/searchconsole-api-wrapper-python/ to get Queries mapped to pages for my web property. However, I am not able to see any data in the rows.

`webproperty = account[site]
report = webproperty.query.range('today', days=-2).dimension('page', 'query').get()

print(report.rows)
print(report.columns)

df = report.to_dataframe()
df.head(5)`

I am not sure what is the issue. This is what I get in the terminal.

Screen Shot 2021-11-14 at 6 01 35 PM

Can you help me out?
I am relatively new to the world of coding. My hypothesis is that probably my site is not there in the list of sites under my GSC account. That is not the case in reality though.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions