Comments (9)
Hi @dpwoodford,
search.php can now be run through cron by setting the $cronjob option to true in the script parameters. The script takes care not to insert duplicate tweets. The user needs to estimate what cron settings are appropriate (depends on the volume of the query results).
For a medium-volume query you may want to run search.php every 15 minutes.
*/15 * * * * (cd /var/www/dmi-tcat/capture/search/; php search.php)
Would this be sufficient, or would you prefer to manage it via capture/index.php
?
Best,
Erik
from dmi-tcat.
Thanks for this Erik, and apologies for my slow reply. We've been under-the-gun lately, but I will check out this implementation over the next couple of days. My concern (and why capture may be better) is how well this will cope with multiple search terms (e.g. a 'bin' of 40 Australian News sites), and that it may get messy managing the tables/cronjobs required to achieve this..
But, I may not have fully understood how you have implemented it, and I'll check back in once I've had a chance to upgrade one of the machines and check it out.
from dmi-tcat.
bump
from dmi-tcat.
Are there any additional documentation resources to learn on how to do more types of queries with the application? Except this own project documentation I have not found any additional resources. I'm interested in being able to apply the types of queries that are listed in the FAQ. But I can not identify exactly how I can make them.
Thanks,
from dmi-tcat.
Hi @limogin,
do you want to retrieve data via search (REST API) or track (streaming API) queries? Or do you want to query the already captured data?
Best,
Erik
from dmi-tcat.
Hi Erik, Yes, I want to track via the streaming API. It is said, defining the search into the ../capture/index.php panel
Thanks,
Victor.
from dmi-tcat.
Hi @limogin,
have you looked at https://dev.twitter.com/docs/streaming-apis/parameters#track?
Best,
Erik
from dmi-tcat.
Hi Erik,
ok, thanks, view.
But I can include in the query manager, in the phases to track a term as "@user" to follow the tweets of a user?.
And I can obtain a relation of tweets by your id?. I don't find nothing related to this feature.
I have set "track" in capture roles, but I should change this to "follow"?
In the documentation I view
Choose a capture role. DMI-TCAT allows you to 'track' tweets based on a set of keywords, 'follow' users based on a set of user ids, or retrieve a 'one percent' sample from the Twitter API. As Twitter only allows you to connect to either one of them for any given IP address, and as most machines only have one IP address, you will have to choose either 'track', 'follow', or 'onepercent' and define that in CAPTUREROLES.
I can execute a php script selecting a ip address?
Thanks for your attention,
Victor.
from dmi-tcat.
For historical reference, adding a @ in a tracking will make TCAT track mentions of those users, not tweets by those users. For this, you should configure TCAT (in config.php) to use the 'follow' role.
The capture/search/timeline.php CLI script can also be used to search for tweets by users.
from dmi-tcat.
Related Issues (20)
- Cannot query users? HOT 2
- Wordcount improvement
- uninstall HOT 1
- Export\import problem HOT 3
- import csv downloaded with academictwitteR produces bin with empty usernames HOT 10
- Visualization module(s?) fail because of unexpected collation HOT 3
- Trying to get in touch regarding a security issue HOT 2
- /capture/index.php doesnt have a response. HOT 4
- Installation on MacBook Pro M1 HOT 1
- Create archive_export.php that works with import.php HOT 10
- Docker build fails with Let's Encrypt enabled HOT 2
- no_mentions, no_tweets discrepancy HOT 17
- Installing problem: The apache2 configtest failed. HOT 4
- Klout has been deprecated
- Docker should use localhost as default SERVERNAME HOT 1
- Installation problem: TCAT Configuration Parameters loop HOT 6
- Remaining Request Stuck HOT 1
- Error on connecting to Twitter API - /1.1/statuses/filter.json HOT 1
- Only part of the scraped datasets are visible in the analysis section of DMI-TCAT HOT 4
- issue with installation on Google cloud HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dmi-tcat.