mschwager / gitem Goto Github PK
View Code? Open in Web Editor NEWA Github organization reconnaissance tool.
License: GNU General Public License v3.0
A Github organization reconnaissance tool.
License: GNU General Public License v3.0
Instead of asserting that arguments are from a certain list of possible values, let's raise a ValueError
if that isn't the case.
If a user doesn't have an email address associated with their account we can still look for email addresses used in their commits:
https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
Hello, when I launch the program like this:
gitem repository Mi-Al WiFi-autopwner
I got the error:
Traceback (most recent call last):
File "/usr/bin/gitem", line 11, in <module>
load_entry_point('gitem==0.8.1', 'console_scripts', 'gitem')()
File "/usr/lib/python3.8/site-packages/gitem/__main__.py", line 285, in main
dispatch[args.command](ghapi, outputter, **vars(args))
File "/usr/lib/python3.8/site-packages/gitem/__main__.py", line 109, in repository
("Contributors", collections.OrderedDict([
TypeError: unhashable type: 'collections.OrderedDict'
I run it on Arch Linux.
Per the reddit thread: Would love to have the ability to clone every repo from an organization and also every repo belonging to every user of that organization.
when an organization cannot be found the following message appears
raceback (most recent call last):
File "/usr/local/bin/gitem", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/gitem/main.py", line 280, in main
dispatch[args.command](ghapi, **vars%28args%29)
File "/usr/local/lib/python2.7/dist-packages/gitem/main.py", line 30, in organization
organization
File "/usr/local/lib/python2.7/dist-packages/gitem/analytics.py", line 10, in get_organization_information
organization
File "/usr/local/lib/python2.7/dist-packages/gitem/api.py", line 197, in get_public_organization
result = self.json_call(method, endpoint, params)
File "/usr/local/lib/python2.7/dist-packages/gitem/api.py", line 99, in json_call
response = self.call(method, url, params)
File "/usr/local/lib/python2.7/dist-packages/gitem/api.py", line 87, in call
raise ApiCallException(response.status_code, response.json())
gitem.api.ApiCallException: 404: {"documentation_url": "https://developer.github.com/v3", "message": "Not Found"}
Hello,
how can I get the output of the command in json format because with the -t modifier gives error
gitem organization microsoft -t
usage: gitem [-h] [-o OAUTH2_TOKEN] [-v] [-p PROCESSES] [-t {stdout,json}]
{organization,repository,user} ...
gitem: error: unrecognized arguments: -t
gitem organization microsoft -t json
usage: gitem [-h] [-o OAUTH2_TOKEN] [-v] [-p PROCESSES] [-t {stdout,json}]
{organization,repository,user} ...
gitem: error: unrecognized arguments: -t json
Thanks and a greeting
When running the example gitem repository facebook react
, I get the following error:
Traceback (most recent call last):
File "lib/gitem/__main__.py", line 301, in <module>
main()
File "lib/gitem/__main__.py", line 280, in main
dispatch[args.command](ghapi, **vars(args))
File "lib/gitem/__main__.py", line 110, in repository
repository
File "/home/dkasak/code/projects/gitem/lib/gitem/analytics.py", line 122, in get_repository_contributors
repository
File "/home/dkasak/code/projects/gitem/lib/gitem/api.py", line 280, in get_repository_contributors
raise ValueError("anon must be one of {}".format(anon_values))
ValueError: anon must be one of [1, 'true']
Looking at the commit history, this bit of 72da801 looks wrong:
@@ -265,7 +275,9 @@ class Api(object):
https://developer.github.com/v3/repos/#list-contributors
"""
- assert anon in [1, "true", None]
+ anon_values = [1, "true"]
+ if anon not in anon_values and type is not None:
+ raise ValueError("anon must be one of {}".format(anon_values))
There's no type
variable in that function and None
is dropped in the transition from the assert to the new code.
We recently added your project to our website: https://linuxsecurity.expert/tools/gitem/
While just looking at the latest version, I saw that the 0.6.0 version was not created as a release. Might be good to bump it up, so other tools can detect the latest version.
Keep up the good work :)
Please, talk me how get token to gitem
Hello man! can you please tell me how to add oauth into your program?
I have "
gitem.api.ApiCallException: 401: {"message": "Bad credentials", "documentation_url": "https://developer.github.com/v3"}
"
Please give me an example of how to send requests with oauth
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.