QT WEBCRAWLER

0 Rishabh gupta · May 28, 2015
can QT be used to make a webcrawler? the one that bucky made while teaching python 3..

Post a Reply

Replies

Oldest  Newest  Rating
0 Rishabh gupta · May 29, 2015
you don't have to test this.If you are aware of any libararies that can be used to work on substrings of a string then please tell me..
applies only if you know QT.if you want to know what i am doing in the code , i will do the documentation...
0 Rishabh gupta · May 29, 2015
@krootushas gesu ..could you please help me out...this is what i have done till now .extracting the information  from m.bbc.com/sport/football/fixtures/today...I  want to extract  just the  names of the teams who have a match .

#include "crawl.h"
#include<QDebug>
#include<QFile>
#include<QTextStream>
crawl::crawl()
{
}
void crawl::getinfo()
{   http=new QHttp();
    QFile *file=new QFile("/home/rishabh/qtcreator/gaol.txt");
    file->open(QFile::Append);
    http->setHost("m.bbc.com");
    http->get("/sport/football/fixtures/today",file);
    file->flush();
    file->close();
     if(file->open(QFile::ReadOnly | QFile::Text))
    {
        QTextStream *stream=new QTextStream(file);
        QString line,s;
        do
        {
            line=stream->readLine();
            qDebug()<<line;
}while(!line.isnull());
}
  • 1

C++

106,984 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator