Giter Site home page Giter Site logo

Comments (2)

myrainbowandsky avatar myrainbowandsky commented on July 17, 2024

nohup twarc2 search --archive --start-time 2010-02-01 --end-time 2022-11-30 "red apple lang:en" apple.jsonl 2>&1 | tee log.log &

from twarc.

igorbrigadir avatar igorbrigadir commented on July 17, 2024

The lang should be in quotes for the query, so the inner quotes, for the phrase, "red apple" have to be escaped in your terminal, however you do that normally in bash for example:

twarc2 search --start-time "2010-02-01" --end-time "2022-11-30" --archive "\"red apple\" lang:en" apple.jsonl

(I also tend to put the dates in quotes too, not strictly necessary, but always good to be explicit, and i moved --archive to make it easier to read)

The command then:

Twarc keeps own logs, in twarc.log in the folder where you run it, and shows you a progress bar, so you don't need to tee output to a log, that will give you a log of the progress bar output, so you can run:

nohup twarc2 search --start-time "2010-02-01" --end-time "2022-11-30" --archive "\"red apple\" lang:en" apple.jsonl &

instead. Another alternative way is to run long twarc commands is inside a screen you detach from, or tmux.

from twarc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.