Skip to content

pprogrammer93/spam-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTES:

  • Copy the config.json that has oauth key and secret to the project directory. This file is needed to make request to Twitter.

TODO:

  1. Give the ability to get array of keywords and array of texts in the form of JSON from input.json.
  2. User interface to input keywords and algorithm type.
  3. Test PHP execute spam engine (searchKeywords)
  4. Implement writeInput in spam-controller.php
  5. Test getVar and export in utils.php (done)
  6. Verify array key to get text and username from twitter response in getTimeLine (done)
  7. Test getTimeLine() (done)

Using Boyer-Moore Program

  1. Create two input files in "res/in" for keywords and text.
  2. Run "bin/boyer-moore.exe {path-to-keywords} {path-to-text}

  1. Clone this git to a "project" folder inside htdocs in xampp.
  2. Create folder bin inside "project" folder.
  3. Install go. You can see how at https://golang.org/doc/install#windows
  4. Add System Environment variables "GOPATH" with value of "project" folder path, for example: "D:/xampp/htdocs/spam-detector"
  5. Add System Environment variables "GOBIN" with value of "project/bin", for example: "D:/xampp/htdocs/spam-detector/bin"
  6. To compile go codes, type command "go install {package-name}", go will create .exe file to "project/bin"

Notes:

  • Make sure package name is main, otherwise compiling the codes will not create .exe, but package file instead.

To know more about Go, see this good and step-by-step documentation https://tour.golang.org/welcome/1 or if you like faster search for certain syntax, see https://www.tutorialspoint.com/go/index.htm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •