Skip to content

Commit

Permalink
cfpsec 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreborges committed Nov 2, 2024
1 parent c7bf9ad commit 11b0e14
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 15 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# cfpsec
CFPsec is program to list Call For Papers or upcoming Hacking/Security Conferences based on cfptime.org website.

[<img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/alexandreborges/cfpsec?color=Red&style=for-the-badge">](https://github.com/alexandreborges/cfpsec/releases/tag/1.2) [<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/alexandreborges/cfpsec?color=Yellow&style=for-the-badge">](https://github.com/alexandreborges/cfpsec/releases) [<img alt="GitHub Release Date" src="https://img.shields.io/github/release-date/alexandreborges/cfpsec?label=Release%20Date&style=for-the-badge">](https://github.com/alexandreborges/cfpsec/releases) [<img alt="GitHub" src="https://img.shields.io/github/license/alexandreborges/cfpsec?style=for-the-badge">](https://github.com/alexandreborges/cfpsec/blob/master/LICENSE)
[<img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/alexandreborges/cfpsec?color=Red&style=for-the-badge">](https://github.com/alexandreborges/cfpsec/releases/tag/1.3) [<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/alexandreborges/cfpsec?color=Yellow&style=for-the-badge">](https://github.com/alexandreborges/cfpsec/releases) [<img alt="GitHub Release Date" src="https://img.shields.io/github/release-date/alexandreborges/cfpsec?label=Release%20Date&style=for-the-badge">](https://github.com/alexandreborges/cfpsec/releases) [<img alt="GitHub" src="https://img.shields.io/github/license/alexandreborges/cfpsec?style=for-the-badge">](https://github.com/alexandreborges/cfpsec/blob/master/LICENSE)
[<img alt="GitHub stars" src="https://img.shields.io/github/stars/alexandreborges/cfpsec?logoColor=Red&style=for-the-badge">](https://github.com/alexandreborges/cfpsec/stargazers) [<img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/ale_sp_brazil?color=blueviolet&style=for-the-badge">](https://twitter.com/ale_sp_brazil)

![Alt text](pictures/picture_1.jpg?raw=true "Title")
![Alt text](pictures/picture_2.jpg?raw=true "Title")

Copyright (C) 2022 Alexandre Borges <alexandreborges at blackstormsecurity dot com>
## Copyright (C) 2024 Alexandre Borges <alexandreborges at blackstormsecurity dot com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -21,15 +21,15 @@ Copyright (C) 2022 Alexandre Borges <alexandreborges at blackstormsecurity dot

See GNU Public License on <http://www.gnu.org/licenses/>.
# Current Version: 1.2
## Current Version: 1.3

CFPsec has been tested on Ubuntu and Windows 11. Likely, it also works on other
operating systems. Before using CFPsec, execute:

$ Install Python 3.9 or newer.
$ pip install cfpsec

# USAGE
## USAGE

To use the CFPsec, execute the command as shown below:

Expand All @@ -45,7 +45,14 @@ To use the CFPsec, execute the command as shown below:
-u UPCOMING, --upcoming UPCOMING List all upcoming Hacking/Security Conferences.
-w WIN, --win WIN Set to 1 whether you are running it on Windows 10 or older.

# HISTORY
## HISTORY

Version 1.3:

This version:
* Fixes have been introduced.
* Slight changes in the Python code.

Version 1.2:

Expand Down
18 changes: 10 additions & 8 deletions cfpsec/cfpsec.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python

# Copyright (C) 2022 Alexandre Borges <[email protected]>
# Copyright (C) 2024 Alexandre Borges <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand All @@ -24,13 +24,13 @@
from datetime import datetime

__author__ = "Alexandre Borges"
__copyright__ = "Copyright 2022, Alexandre Borges"
__copyright__ = "Copyright 2024, Alexandre Borges"
__license__ = "GNU General Public License v3.0"
__version__ = "1.2"
__email__ = "alexandreborges at blackstormsecurity.com"
__version__ = "1.3"
__email__ = "[email protected]"

cfpurl = 'https://api.cfptime.org/api/cfps'
upurl = 'https://api.cfptime.org/api/upcoming'
cfpurl = 'https://api.cfptime.org/api/cfps/'
upurl = 'https://api.cfptime.org/api/upcoming/'

class mycolors:

Expand Down Expand Up @@ -69,7 +69,9 @@ def cfplist(param):

try:

response = requests.get(param)
session = requests.Session()
session.headers.update({'Content-Type': 'application/json'})
response = session.get(param)
cfptext = json.loads(response.text)

if (len(cfptext) > 0):
Expand Down Expand Up @@ -133,7 +135,7 @@ def uplist(param):
upcoming = 0
win = 0

parser = argparse.ArgumentParser(prog=None, description="CFPsec lists Call For Papers or upcoming Hacking/Security Conferences based on cfptime.org website. The current version is 1.2", usage= "python cfpsec.py -c <0|1> -u <0|1> -w <0|1>")
parser = argparse.ArgumentParser(prog=None, description="CFPsec lists Call For Papers or upcoming Hacking/Security Conferences based on cfptime.org website. The current version is 1.3", usage= "python cfpsec.py -c <0|1> -u <0|1> -w <0|1>")
parser.add_argument('-c', '--cfp', dest='cfp',type=int, default=1, help='List Call For Papers of Hacking/Securiy Conferences.')
parser.add_argument('-u', '--upcoming', dest='upcoming',type=int, default=0, help='List all upcoming Hacking/Security Conferences.')
parser.add_argument('-w', '--win', dest='win',type=int, default=0, help='Set to 1 whether you are running it on Windows 10 or older.')
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

setup(
name="cfpsec",
version="1.2",
version="1.3",
author="Alexandre Borges",
author_email="[email protected]",
author_email="[email protected]",
license="GNU GPL v3.0",
url="https://github.com/alexandreborges/cfpsec",
description=("CFPsec is a client program that retrieves the list of Call For Papers or/and upcoming Hacking/Security Conferences based on cfptime.org website."),
Expand Down

0 comments on commit 11b0e14

Please sign in to comment.