<commit_before># KijijiBotV2
#### Send  POST requests to Kijiji... to post your ads

## Setup
- This project requires python3 with: python-requests, json, bs4, sqlalchemy
- Run `pip3 install -r requirements.txt`

## Requirements
- The program currently requires that you post at LEAST one photo
- As per Kijiji requirements, the item description must be at least 10 characters

## Usage

### Generating a .inf file for an ad
- Generate a posting file (myAd.inf) with the command `python generate_inf_file.py` and follow the prompts
- Place all photo dependancies in the current directory

### Posting + Reposting an ad
To post myAd.inf:

`python KijijiCmd.py -u (username) -p (password) post myAd.inf`

To repost myAd.inf (will delete the ad if it is already posted prior to posting):

`python KijijiCmd.py -u (username) -p (password) repost myAd.inf`

To delete all ads:

`python KijijiCmd.py -u (username) -p (password) nuke`

To delete one ad:

`python KijijiCmd.py -u (username) -p (password) delete (adId)`

Alternatively, there are also interfaces for posting/reposting an ad from a folder, which is especially useful if you're too lazy to enter your username/password every time or you have multiple Kijiji accounts.

Inside your folder, include ALL photos, an `item.inf` ad file, and a `login.inf` file with the first line containing your Kijiji login username and the second line containing your Kijiji login password.

To post from folder:

`python KijijiCmd.py folder (folderName)`

To repost from folder:

`python KijijiCmd.py repostFolder (folderName)`

## Issues
Please open a GitHub issue or pull request if you discover problems.

## TODO
- Error handling -> automatically send bugs + logs to developer
- Modify GenerateInfFile to be more user friendly
- Organize files like a standard module
- Do some magic to avoid reuploading the same pictures again and again<commit_msg>corrected the how-to's reflecting the new file's and function's names<commit_after># KijijiBotV2
#### Send  POST requests to Kijiji... to post your ads

## Setup
- This project requires python3 with: python-requests, json, bs4, sqlalchemy
- Run `pip3 install -r requirements.txt`

## Requirements
- The program currently requires that you post at LEAST one photo
- As per Kijiji requirements, the item description must be at least 10 characters

## Usage

### Generating a .inf file for an ad
- Generate a posting file (myAd.inf) with the command `python generate_inf_file.py` and follow the prompts
- Place all photo dependancies in the current directory

### Posting + Reposting an ad
To post myAd.inf:

`python kijiji_cmd.py -u (username) -p (password) post myAd.inf`

To repost myAd.inf (will delete the ad if it is already posted prior to posting):

`python kijiji_cmd.py -u (username) -p (password) repost myAd.inf`

To delete all ads:

`python kijiji_cmd.py -u (username) -p (password) nuke`

To delete one ad:

`python kijiji_cmd.py -u (username) -p (password) delete (adId)`

Alternatively, there are also interfaces for posting/reposting an ad from a folder, which is especially useful if you're too lazy to enter your username/password every time or you have multiple Kijiji accounts.

Inside your folder, include ALL photos, an `item.inf` ad file, and a `login.inf` file with the first line containing your Kijiji login username and the second line containing your Kijiji login password.

To post from folder:

`python kijiji_cmd.py folder (folderName)`

To repost from folder:

`python kijiji_cmd.py repost_folder (folderName)`

## Issues
Please open a GitHub issue or pull request if you discover problems.

## TODO
- Error handling -> automatically send bugs + logs to developer
- Modify GenerateInfFile to be more user friendly
- Organize files like a standard module
- Do some magic to avoid reuploading the same pictures again and again
{'fraction_non_alphanumeric': 0.07126137841352406, 'fraction_numerical': 0.0031209362808842654, 'mean_word_length': 4.334257975034674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4566809', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1091, 'n_words': 546}