Code Monkey home page Code Monkey logo

strudel.scraper's Introduction

strudel.scraper's People

Contributors

user2589 avatar actions-user avatar

Stargazers

Claas de Boer avatar Minghao Li avatar  avatar Justin Ventura avatar  avatar Huilian Sophie Qiu avatar vrozenbaum avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

strudel.scraper's Issues

Feature request / question for commit details

I need details on commits, and therefore I added some lines to the code to implement this functionality:

    @api('repos/%s/commits/%s', paginate=True)
    def repo_commit_detail(self, repo_slug, commit_hash):
        """Get details for a given commit."""
        # https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#get-a-commit
        return repo_slug, commit_hash

However, this returns a object like

<generator object VCSAPI.request at 0x10a1e5890>

How to convert that to a json/dict object?

Passing in tokens into GitHubAPI throws TypeError

When I tried to create an API object by passing in a token into GitHubAPI, I got the following error message:

Traceback (most recent call last):
  File "scraper_test.py", line 10, in <module>
    api = stscraper.GitHubAPI(tokens='<input token>')
  File "/data2/cassandra/stscraper/base.py", line 150, in __new__
    cls._instance = super(VCSAPI, cls).__new__(cls, *args, **kwargs)
TypeError: object() takes no parameters

The code I used to get this error is:

import pandas as pd
import stscraper
import stutils

if __name__ == "__main__":
    api = stscraper.GitHubAPI(tokens='<insert token>')

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.