Skip to content

echo0110/C_code_annalyze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use Python to crawl the string in the C language .c code. The main implementation is in the main.py file.

Linux environment:

Put the main.py script in the code project directory, execute python main.py -i test.C. The main.py script will automatically find the test.c file and crawl the string in the log_id_msg function in the tets.c file. Connect to the mysql database and write to mysql.

利用Python爬取C语言.c代码中的字符串 主要实现是在main.py文件中

Linux环境下:

把main.py脚本放到代码工程目录下, 执行python main.py -i test.C main.py脚本会自动寻找test.c文件 并爬取tets.c文件中log_id_msg函数中的字符串 连接mysql数据库 写入mysql中

44f2839809fcebd1128e4552d5087d1

About

Python script to crawl the lines containing the specified string in the C file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors