docs, gitignore
This commit is contained in:
		
							parent
							
								
									e1e77512f4
								
							
						
					
					
						commit
						84931ba0d3
					
				
					 2 changed files with 17 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -5,3 +5,4 @@ __pycache__
 | 
			
		|||
config.yml
 | 
			
		||||
conf.d
 | 
			
		||||
.venv
 | 
			
		||||
bot_session.session
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										16
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,3 +1,19 @@
 | 
			
		|||
# pgbot
 | 
			
		||||
 | 
			
		||||
Use `config.yml` to set it up. It needs a list of regex with tokens and a database to match them. This doc is probably going to be abandoned right away, but at least I have added this line I dunno.
 | 
			
		||||
 | 
			
		||||
Dependencies:
 | 
			
		||||
* bs4 - for parsing html
 | 
			
		||||
* fake_headers - for tricking search engines
 | 
			
		||||
* psycopg - for pgsql
 | 
			
		||||
* pyyaml - for config parsing
 | 
			
		||||
* requests - for http requests
 | 
			
		||||
* schedule - for scheduling, duh
 | 
			
		||||
* telethon - for interacting with bot api
 | 
			
		||||
 | 
			
		||||
Initial setup:
 | 
			
		||||
```
 | 
			
		||||
python -m venv .venv
 | 
			
		||||
source .venv/bin/activate
 | 
			
		||||
pip install bs4 fake_headers psycopg pyyaml requests schedule telethon
 | 
			
		||||
```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue