Comments (2)
Working on branch #51
Added new method in WhatsAppChat
to export chat as txt file:
from whatstk import WhatsAppChat
chat = WhatsAppChat.from_txt("path/to/file.txt")
chat.to_txt(filename="path/to/new/file", hformat="%Y-%m-%d, %H:%M - %name")
from whatstk.
This is now solved.
You can generate random chats using module whatstk.utils.chat_generation
.
Example:
from whatstk.utils.chat_generation import generate_chats_hformats
generate_chats_hformats(output_folder='some/folder/, size=1000)
Note: You can pass a list of the hformats to generate chats for using argument hformats
. By default, will use all supported hformats.
Alternative, is to use command line commands:
whatstk-generate-chats --size 1000 some/folder/
from whatstk.
Related Issues (20)
- Reduce library dependencies so that whatstk becomes lighter
- Installation error with Python 3.8 and Visual Studio HOT 11
- Fix links
- Automate chat text files to CSV conversion HOT 6
- ENH: Add support for Google Drive
- Error when using `pip install` HOT 8
- Parse messages which contain \n characters HOT 1
- Migrate CI/CD: Travis to GitHub Actions HOT 1
- Chat Parser Not Working HOT 4
- Add script to parse chat from txt to csv HOT 1
- Command-line tool to visualize chat
- Generate documentation of project using sphinx.
- Create list mapping usernames to colours, so same color is used for a user in all plots
- Chat df schema (strings)
- Re-adapt library so it might incorporate other sources in the future (e.g. facebook, instagram...).
- Read chats from URLs
- Option to count the number of interventions jointly (all users combined).
- argument 'cummulative' is mispelled, should be 'cumulative'.
- Python 3.9 compatibility HOT 2
- change index in chat dataframe: Use ID instead of timestamp (since timestamp might be repeated)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatstk.