Spaces:
Running
Running
LinkScout - Quick Test Guide
π Quick Start (2 Steps)
Step 1: Start Backend
cd D:\LinkScout
python combined_server.py
Wait for:
β
RoBERTa loaded
β
Emotion model loaded
Server: http://localhost:5000
Step 2: Start Website
cd D:\LinkScout\web_interface\LinkScout
npm run dev
Wait for:
β Ready in 2.5s
Local: http://localhost:3000
β Test 1: URL Analysis
Steps:
- Open: http://localhost:3000/search
- Paste:
https://www.bbc.com/news/articles/c93dy2kk7vzo - Press Enter
Expected Result:
β
URL is scraped
β
30+ paragraphs extracted
β
Full AI analysis displayed
β
Risk score shown (not 0%)
β
Categories detected
β
"What's Correct" section filled
β
"What's Wrong" section filled
β
Sources shown
If you see "0% risk" or "Article":
- β URL scraping failed
- Check backend console for errors
- Try a different URL
β Test 2: Mobile Responsiveness
Steps:
- Press F12 (DevTools)
- Press Ctrl+Shift+M (Mobile view)
- Select: iPhone 14 Pro
- Click the input box
Expected Result:
β
Input doesn't overlap keyboard
β
Content scrolls smoothly
β
Buttons are easy to tap
β
Text is readable
β
Swipe handle shows at top
If input overlaps keyboard:
- β Hard refresh: Ctrl+Shift+R
- Clear browser cache
β Test 3: Extension Download
From Homepage:
Steps:
- Go to: http://localhost:3000
- Click: "Get Extension"
Expected Result:
β
Button shows "Downloading..."
β
File downloads: linkscout-extension.zip
β
Page redirects to /extensions
β
Success message appears
From Extensions Page:
Steps:
- Go to: http://localhost:3000/extensions
- Click: "Download Extension" (big button)
Expected Result:
β
Button shows loading spinner
β
File downloads: linkscout-extension.zip
β
Alert: "Extension downloaded! Extract..."
If download fails:
- β Backend not running β Start
python combined_server.py - Check browser console (F12) for errors
β Test 4: Install Extension
Steps:
- Extract
linkscout-extension.zip - Open Chrome/Edge
- Go to:
chrome://extensionsoredge://extensions - Enable "Developer mode" (top-right toggle)
- Click "Load unpacked"
- Select extracted folder
Expected Result:
β
Extension appears in list
β
No errors shown
β
Extension icon in toolbar
β
Click icon β Popup opens
β
Can analyze URLs from popup
π Common Issues
Issue: "Download failed"
Solution:
# Start backend first!
python combined_server.py
Issue: "No content found at this URL"
Solution:
# Try these test URLs:
https://www.bbc.com/news
https://www.cnn.com
https://www.reddit.com/r/news
Issue: "Analysis failed"
Solution:
# Check backend is running on port 5000
# Check backend console for errors
# Try restarting backend
Issue: Mobile input still overlapping
Solution:
# Hard refresh browser
Ctrl + Shift + R (Windows)
Cmd + Shift + R (Mac)
# Or clear cache:
DevTools β Application β Clear storage
π Success Criteria
β URL Analysis Works When:
- URL scraping extracts 20+ paragraphs
- Risk score is not 0% (unless truly credible)
- Categories are detected (not just "Other")
- "What's Correct" has actual content
- "What's Wrong" has actual content
β Mobile Works When:
- Input never hidden by keyboard
- Can type and scroll smoothly
- All buttons easily tappable
- Content visible at all times
β Download Works When:
- ZIP file downloads successfully
- File size is ~50-100 KB
- Can extract without errors
- Extension loads in browser
π― Quick Verification
Run This Test (30 seconds):
1. Start backend: python combined_server.py
2. Start frontend: npm run dev
3. Open: http://localhost:3000/search
4. Paste: https://www.bbc.com/news
5. Verify: Risk score β 0%, categories shown
6. Click: Download Extension (any page)
7. Verify: ZIP downloads
8. Done! β
π If Everything Works:
You should see:
- β URLs being properly analyzed
- β Mobile layout perfect
- β Extension downloading
- β No console errors
Congratulations! All 3 fixes are working! π
π What Got Fixed:
- URL Analysis β Now scrapes actual content
- Mobile UI β Perfect positioning, no overlap
- Extension Download β Real ZIP download with install guide
All systems operational! π