Feature/expand platform support#10
Merged
Merged
Conversation
This commit expands the social media analyzer tool to support a wider range of platforms, including social media, communication, and e-commerce sites. The following platforms have been added: - Telegram - Twitter - Pinterest - LinkedIn - Line - Discord - Teams - Zoom - Amazon - Alibaba The changes include: - Updating the platform list in `main.py` to make the new platforms selectable. - Adding legitimate domains for the new platforms to `heuristics.py` and updating the suspicious URL patterns. - Providing platform-specific advice for identifying fake profiles or scams on the new platforms in `fake_profile_detector.py`.
This commit further expands the social media analyzer tool to support a wider range of platforms and introduces email analysis capabilities. The following platforms have been added: - YouTube - Skype - VK - Reddit - Email The changes include: - Updating the platform list in `main.py` to make the new platforms and email analysis selectable. - Adding legitimate domains for the new platforms to `heuristics.py` and updating the suspicious URL patterns. - Providing platform-specific advice for the new platforms in `fake_profile_detector.py`. - Adding specific advice for analyzing emails, focusing on sender details and content.
This commit expands the social media analyzer tool to support a wider range of platforms and enhances scam detection capabilities. The following platforms have been added: - Viber - Signal - Badoo - Binance The changes include: - Updating the platform list in `main.py`. - Adding legitimate domains and updating suspicious URL patterns in `heuristics.py`. - Adding platform-specific advice for the new platforms in `fake_profile_detector.py`. - Enhancing email analysis advice with Gmail-specific tips. - Adding Forex-related keywords to the scam detection engine to improve its effectiveness against financial scams.
This commit adds support for the ShareChat platform and introduces a new "Browser" option for direct URL analysis. The changes include: - Adding "sharechat" and "browser" to the platform list in `main.py`. - Implementing a special workflow for the "browser" option to allow users to analyze a URL directly. - Adding legitimate domains and platform-specific advice for ShareChat. - Updating the suspicious URL patterns to include ShareChat. This work is in response to user requests to add more platforms and to interpret the request for browser integration as a feature for URL analysis.
Reviewer's GuideThis PR broadens platform coverage by adding detection rules for numerous social networks, extends the main UI to handle a new 'browser' analysis mode with expanded platform listing, and strengthens heuristic patterns and domain whitelists to support the added platforms and new scam vectors. Class diagram for updated heuristics and platform supportclassDiagram
class Heuristics {
+SAFE_DOMAINS: dict
+SUSPICIOUS_KEYWORDS: list
+SUSPICIOUS_URL_PATTERNS: list
}
class FakeProfileDetector {
+analyze_profile_based_on_user_input(profile_url, platform)
+PLATFORM_FAKE_PROFILE_TIPS: dict
}
class ScamDetector {
+analyze_text_for_scams(message, platform)
+is_url_suspicious(url)
}
Heuristics <.. ScamDetector : uses
FakeProfileDetector <.. Heuristics : uses
ScamDetector <.. FakeProfileDetector : uses
Flow diagram for main.py platform selection and analysis logicflowchart TD
A["Start"] --> B["Display platform list (expanded)"]
B --> C["User selects platform"]
C --> D{Is platform 'browser'?}
D -- Yes --> E["Prompt for URL"]
E --> F["Analyze URL for suspicious patterns"]
F --> G["Display URL analysis results"]
D -- No --> H["Prompt for profile or message analysis"]
H --> I{User chooses profile or message}
I -- Profile --> J["Prompt for profile URL"]
J --> K["Analyze profile for fake signs"]
K --> L["Display profile analysis results"]
I -- Message --> M["Prompt for message"]
M --> N["Analyze message for scam indicators"]
N --> O["Display scam analysis results"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Expand platform coverage and add browser-based URL analysis while updating heuristics for comprehensive scam detection
New Features:
Enhancements: