Skip to content

Commit 6f01d10

Browse files
authored
Merge pull request #18 from fa0311/develop
update generator version
2 parents d147615 + a3233fb commit 6f01d10

648 files changed

Lines changed: 19154 additions & 10424 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"ms-python.debugpy",
4+
"davidanson.vscode-markdownlint",
5+
"ms-python.python",
6+
"ms-python.vscode-pylance",
7+
"charliermarsh.ruff"
8+
]
9+
}
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
{
2-
"flake8.args": ["--ignore=E501"],
3-
"python.testing.unittestArgs": ["-v", "-s", "test/api", "-p", "test_*.py"],
2+
"python.testing.unittestArgs": [
3+
"-v",
4+
"-s",
5+
"test/api",
6+
"-p",
7+
"test_*.py"
8+
],
49
"python.testing.pytestEnabled": false,
510
"python.testing.unittestEnabled": true,
611
"python.analysis.typeCheckingMode": "basic",
712
"editor.unicodeHighlight.ambiguousCharacters": false,
813
"editor.codeActionsOnSave": {
9-
"source.organizeImports": true
14+
"source.organizeImports": "explicit",
15+
"source.fixAll": "explicit"
1016
},
1117
"markdownlint.config": {
1218
"MD033": false
1319
}
14-
}
20+
}

twitter_openapi_python/twitter_openapi_python/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ class TwitterOpenapiPython:
6666

6767
api_key = {
6868
"Accept": "*/*",
69-
"AcceptEncoding": "gzip, deflate, br",
69+
# "AcceptEncoding": "gzip, deflate, br",
70+
# "AcceptEncoding": "deflate, br",
7071
"AcceptLanguage": "en-US,en;q=0.9",
7172
"CacheControl": "no-cache",
7273
"Pragma": "no-cache",
@@ -150,7 +151,8 @@ def get_guest_client(self) -> TwitterOpenapiPythonClient:
150151
"GET",
151152
"https://twitter.com",
152153
redirect=False,
153-
headers=self.browser_headers.copy() | {"Cookie": self.cookie_to_str(session)},
154+
headers=self.browser_headers.copy()
155+
| {"Cookie": self.cookie_to_str(session)},
154156
)
155157

156158
find = re.findall(r'document.cookie="(.*?)";', res_2.data.decode())

twitter_openapi_python_generated/.github/workflows/python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
python -m pip install --upgrade pip
2727
pip install flake8 pytest
2828
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
2930
- name: Lint with flake8
3031
run: |
3132
# stop the build if there are Python syntax errors or undefined names

twitter_openapi_python_generated/.gitlab-ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ pytest-3.8:
2222
image: python:3.8-alpine
2323
pytest-3.9:
2424
extends: .pytest
25-
image: python:3.9-alpine
25+
image: python:3.9-alpine
26+
pytest-3.10:
27+
extends: .pytest
28+
image: python:3.10-alpine
29+
pytest-3.11:
30+
extends: .pytest
31+
image: python:3.11-alpine
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.0-SNAPSHOT
1+
7.2.0

twitter_openapi_python_generated/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Twitter OpenAPI(Swagger) specification
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 0.0.1
7-
- Package version: 0.0.8
7+
- Package version: 0.0.9
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.

twitter_openapi_python_generated/docs/AdditionalMediaInfo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
78
**monetizable** | **bool** | |

twitter_openapi_python_generated/docs/BirdwatchEntity.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
78
**from_index** | **int** | |

twitter_openapi_python_generated/docs/BirdwatchEntityRef.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33

44
## Properties
5+
56
Name | Type | Description | Notes
67
------------ | ------------- | ------------- | -------------
78
**type** | **str** | |

0 commit comments

Comments
 (0)